Distribution.Types.ForeignLibType

Cabal-2.0.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.ForeignLibType (signature[?])

Synopsis

- data ForeignLibType
  - = ForeignLibNativeShared
  - | ForeignLibNativeStatic
  - | ForeignLibTypeUnknown
- knownForeignLibTypes :: [ForeignLibType]
- foreignLibTypeIsShared :: ForeignLibType -> Bool

# Documentation

data ForeignLibType Source #

What kind of foreign library is to be built?

Constructors

ForeignLibNativeShared | A native shared library (`.so` on Linux, `.dylib` on OSX, or `.dll` on Windows).
ForeignLibNativeStatic | A native static library (not currently supported.)
ForeignLibTypeUnknown |

Instances

Eq ForeignLibType # |
Methods (==) :: ForeignLibType -> ForeignLibType -> Bool # (/=) :: ForeignLibType -> ForeignLibType -> Bool #
Data ForeignLibType # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ForeignLibType -> c ForeignLibType Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ForeignLibType Source # toConstr :: ForeignLibType -> Constr Source # dataTypeOf :: ForeignLibType -> DataType Source # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ForeignLibType) Source # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ForeignLibType) Source # gmapT :: (forall b. Data b => b -> b) -> ForeignLibType -> ForeignLibType Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ForeignLibType -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ForeignLibType -> r Source # gmapQ :: (forall d. Data d => d -> u) -> ForeignLibType -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> ForeignLibType -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ForeignLibType -> m ForeignLibType Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ForeignLibType -> m ForeignLibType Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ForeignLibType -> m ForeignLibType Source #
Read ForeignLibType # |
Methods readsPrec :: Int -> ReadS ForeignLibType Source # readList :: ReadS [ForeignLibType] Source # readPrec :: ReadPrec ForeignLibType Source # readListPrec :: ReadPrec [ForeignLibType] Source #
Show ForeignLibType # |
Methods showsPrec :: Int -> ForeignLibType -> ShowS Source # show :: ForeignLibType -> String Source # showList :: [ForeignLibType] -> ShowS Source #
Generic ForeignLibType # |
Associated Types type Rep ForeignLibType :: * -> * Source # Methods from :: ForeignLibType -> Rep ForeignLibType x Source # to :: Rep ForeignLibType x -> ForeignLibType Source #
Semigroup ForeignLibType # |
Methods (<>) :: ForeignLibType -> ForeignLibType -> ForeignLibType Source # sconcat :: NonEmpty ForeignLibType -> ForeignLibType Source # stimes :: Integral b => b -> ForeignLibType -> ForeignLibType Source #
Monoid ForeignLibType # |
Methods mempty :: ForeignLibType Source # mappend :: ForeignLibType -> ForeignLibType -> ForeignLibType Source # mconcat :: [ForeignLibType] -> ForeignLibType Source #
Binary ForeignLibType # |
Methods put :: ForeignLibType -> Put Source # get :: Get ForeignLibType Source # putList :: [ForeignLibType] -> Put Source #
Text ForeignLibType # |
Methods disp :: ForeignLibType -> Doc Source # parse :: ReadP r ForeignLibType Source #
type Rep ForeignLibType # |
type Rep ForeignLibType = D1 * (MetaData "ForeignLibType" "Distribution.Types.ForeignLibType" "Cabal-2.0.0.0" False) ((:+:) * (C1 * (MetaCons "ForeignLibNativeShared" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ForeignLibNativeStatic" PrefixI False) (U1 *)) (C1 * (MetaCons "ForeignLibTypeUnknown" PrefixI False) (U1 *))))

knownForeignLibTypes :: [ForeignLibType] Source #

foreignLibTypeIsShared :: ForeignLibType -> Bool Source #