GHC.Toolchain.Tools.Cxx

ghc-toolchain-0.1.0.0: Utility for managing GHC target toolchains

Safe Haskell | None
Language | Haskell2010

GHC.Toolchain.Tools.Cxx

Contents

- Helpful utilities

Synopsis

- newtype Cxx = Cxx {
  - cxxProgram :: Program
  }
- findCxx :: ArchOS -> String -> ProgOpt -> M Cxx
- compileCxx :: Cxx -> FilePath -> String -> M ()

# Documentation

newtype Cxx Source #

Constructors

Cxx |
Fields cxxProgram :: Program

#### Instances

Instances details

Read Cxx Source # |
Instance details Defined in GHC.Toolchain.Tools.Cxx Methods readsPrec :: Int -> ReadS Cxx # readList :: ReadS [Cxx] # readPrec :: ReadPrec Cxx # readListPrec :: ReadPrec [Cxx] #
Show Cxx Source # |
Instance details Defined in GHC.Toolchain.Tools.Cxx Methods showsPrec :: Int -> Cxx -> ShowS # show :: Cxx -> String # showList :: [Cxx] -> ShowS #
Eq Cxx Source # |
Instance details Defined in GHC.Toolchain.Tools.Cxx Methods (==) :: Cxx -> Cxx -> Bool # (/=) :: Cxx -> Cxx -> Bool #
Ord Cxx Source # |
Instance details Defined in GHC.Toolchain.Tools.Cxx Methods compare :: Cxx -> Cxx -> Ordering # (<) :: Cxx -> Cxx -> Bool # (<=) :: Cxx -> Cxx -> Bool # (>) :: Cxx -> Cxx -> Bool # (>=) :: Cxx -> Cxx -> Bool # max :: Cxx -> Cxx -> Cxx # min :: Cxx -> Cxx -> Cxx #

findCxx Source #

Arguments

:: ArchOS |
-> String | The llvm target to use if Cc supports --target
-> ProgOpt |
-> M Cxx |

# Helpful utilities

compileCxx Source #

Arguments

:: Cxx | cxx
-> FilePath | output path
-> String | C++ source
-> M () |