Skip to content

Commit

Permalink
Remove useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
theophile-scrive committed Dec 8, 2024
1 parent 24e478d commit f0bde46
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions servant-client/test/Servant/ClientTestUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,6 @@ data MultipleChoicesIntResult

instance GSOP.Generic MultipleChoicesIntResult

-- The 'AsUnion' instance can also be written manually as such:
--
-- instance => AsUnion MultipleChoicesIntResponses MultipleChoicesIntResult where
-- toUnion NegativeNumber = Z (I ())
-- toUnion (Even b) = S (Z (I b))
-- toUnion (Odd i) = S (S (Z (I i)))
--
-- fromUnion (Z (I ())) = NegativeNumber
-- fromUnion (S (Z (I b))) = Even b
-- fromUnion (S (S (Z (I i)))) = Odd i
-- fromUnion (S (S (S x))) = case x of {}

-- This is our endpoint description
type MultipleChoicesInt =
Capture "int" Int
Expand Down

0 comments on commit f0bde46

Please sign in to comment.