{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}

module Distribution.Types.ForeignLibOption(
) where

import Prelude ()
import Distribution.Compat.Prelude

import Text.PrettyPrint
import qualified Distribution.Compat.ReadP as Parse
import Distribution.Text

data ForeignLibOption =
     -- | Merge in all dependent libraries (i.e., use
     -- @ghc -shared [email protected] rather than just record
     -- the dependencies, ala @ghc -shared [email protected]).
     -- This option is compulsory on Windows and unsupported
     -- on other platforms.
    deriving (Generic, Show, Read, Eq, Typeable, Data)

instance Text ForeignLibOption where
  disp ForeignLibStandalone = text "standalone"

  parse = Parse.choice [
      do _ <- Parse.string "standalone" ; return ForeignLibStandalone

instance Binary ForeignLibOption