module GHC.Utils.CliOption
( Option (..)
, showOpt
) where
import GHC.Prelude
data Option
= FileOption
String
String
| Option String
deriving ( Option -> Option -> Bool
(Option -> Option -> Bool)
-> (Option -> Option -> Bool) -> Eq Option
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Option -> Option -> Bool
$c/= :: Option -> Option -> Bool
== :: Option -> Option -> Bool
$c== :: Option -> Option -> Bool
External instance of the constraint type Eq Char
External instance of the constraint type Eq Char
External instance of the constraint type forall a. Eq a => Eq [a]
External instance of the constraint type forall a. Eq a => Eq [a]
External instance of the constraint type Eq Char
Eq )
showOpt :: Option -> String
showOpt :: Option -> String
showOpt (FileOption String
pre String
f) = String
pre String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
f
showOpt (Option String
s) = String
s