Skip to content

Commit

Permalink
Fix NubList doctest examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jgotoh committed Apr 11, 2024
1 parent 68461ee commit 20544fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cabal-install/src/Distribution/Client/Utils/Parsec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ newtype NubList' sep b a = NubList' {_getNubList :: NubList a}
-- alaNubList VCat :: NubList a -> NubList' VCat (Identity a) a
--
-- >>> :t alaNubList' FSep Token
-- alaNubList' FSep Token :: NubList String -> NubList' FSep Token String
-- alaNubList' FSep Token
-- :: NubList String -> NubList' FSep Token String
--
-- >>> unpack' (alaNubList' FSep Token) <$> eitherParsec "foo bar foo"
-- Right (toNubList ["bar","foo"])
-- Right ["foo","bar"]
alaNubList :: sep -> NubList a -> NubList' sep (Identity a) a
alaNubList _ = NubList'

Expand Down

0 comments on commit 20544fa

Please sign in to comment.