module QuantLib.Options ( module QuantLib.Options ) where data OptionType = Call | Put deriving (Int -> OptionType -> ShowS [OptionType] -> ShowS OptionType -> String (Int -> OptionType -> ShowS) -> (OptionType -> String) -> ([OptionType] -> ShowS) -> Show OptionType forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a $cshowsPrec :: Int -> OptionType -> ShowS showsPrec :: Int -> OptionType -> ShowS $cshow :: OptionType -> String show :: OptionType -> String $cshowList :: [OptionType] -> ShowS showList :: [OptionType] -> ShowS Show, OptionType -> OptionType -> Bool (OptionType -> OptionType -> Bool) -> (OptionType -> OptionType -> Bool) -> Eq OptionType forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a $c== :: OptionType -> OptionType -> Bool == :: OptionType -> OptionType -> Bool $c/= :: OptionType -> OptionType -> Bool /= :: OptionType -> OptionType -> Bool Eq) toInt :: OptionType -> Int toInt :: OptionType -> Int toInt OptionType Call = Int 1 toInt OptionType Put = -Int 1 toDouble :: OptionType -> Double toDouble :: OptionType -> Double toDouble OptionType Call = Double 1.0 toDouble OptionType Put = -Double 1.0