You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if it's possible, but something like:
data Example1 =
Example1
{ foo :: Int <?> "Documentation for the foo flag in Example1"
, bar :: Double <?> "Documentation for the bar flag in Example1"
}
| Example2
{ foo :: Int <?> "Documentation for the foo flag in Example2"
, bar :: Double <?> "Documentation for the bar flag in Example2"
}
deriving (Generic, Show)
Probably requiring some type of record fields. This feature would be quite useful in that you could have a program with multiple entry points with the same arguments, such as input but take in different formats.
The text was updated successfully, but these errors were encountered:
@GregorySchwartz: I don't think it's possible, mainly due to a Haskell restriction requiring fields of the same name to have the same type for different constructors and the help text is part of the field type
I don't know if it's possible, but something like:
Probably requiring some type of record fields. This feature would be quite useful in that you could have a program with multiple entry points with the same arguments, such as
input
but take in different formats.The text was updated successfully, but these errors were encountered: