Add support for lists

This commit is contained in:
Gabriel Gonzalez 2016-02-26 20:27:42 -08:00
parent 5a5f48a414
commit a7684f3245

View File

@ -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