mirror of
https://github.com/Gabriella439/Haskell-Optparse-Generic-Library.git
synced 2024-11-23 13:57:59 +03:00
Removed instances for Char
This is so that `String` is not an accidental valid instance in order to encourage people to use `Text`
This commit is contained in:
parent
a1bfe014f5
commit
df5544f0a5
@ -93,7 +93,6 @@ class ParseField a where
|
||||
<> Options.long (Data.Text.unpack name)
|
||||
Options.option auto fs
|
||||
|
||||
instance ParseField Char
|
||||
instance ParseField Double
|
||||
instance ParseField Float
|
||||
instance ParseField Int
|
||||
@ -159,8 +158,6 @@ instance ParseField a => ParseRecord (Only a) where
|
||||
parseRecord = Options.helper <*> fmap Only (parseField Nothing)
|
||||
|
||||
instance ParseRecord Bool
|
||||
instance ParseRecord Char where
|
||||
parseRecord = fmap getOnly parseRecord
|
||||
instance ParseRecord Double where
|
||||
parseRecord = fmap getOnly parseRecord
|
||||
instance ParseRecord Float where
|
||||
|
Loading…
Reference in New Issue
Block a user