mirror of
https://github.com/Gabriella439/Haskell-Optparse-Generic-Library.git
synced 2024-11-30 03:32:38 +03:00
Add support for lists
This commit is contained in:
parent
5a5f48a414
commit
a7684f3245
@ -141,6 +141,9 @@ instance ParseField FilePath where
|
||||
instance ParseField a => ParseField (Maybe a) where
|
||||
parseField = fmap optional parseField
|
||||
|
||||
instance ParseField a => ParseField [a] where
|
||||
parseField = fmap many parseField
|
||||
|
||||
newtype Only a = Only { getOnly :: a }
|
||||
|
||||
{-| A class for types that can be parsed from the command line
|
||||
|
Loading…
Reference in New Issue
Block a user