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
The docs have examples using <?> for documentation and an example using <!> for default values. It's not obvious (to me at least) how to use them together. Could you provide an example of this?
The text was updated successfully, but these errors were encountered:
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeOperators #-}
importOptions.GenericdataExamplew=Example{foo::w::: (Int<?>"Documentation for the foo flag"<!>"1" )
, bar::w::: (Double<?>"Documentation for the bar flag"<!>"2.0")
}deriving (Generic)
instanceParseRecord (ExampleWrapped)
derivinginstanceShow (ExampleUnwrapped)
main =do
x <- unwrapRecord "Test program"print (x ::ExampleUnwrapped)
The docs have examples using <?> for documentation and an example using <!> for default values. It's not obvious (to me at least) how to use them together. Could you provide an example of this?
The text was updated successfully, but these errors were encountered: