flaw-build-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Build

Description

 
Synopsis

Documentation

loadFile :: FilePath -> Q ByteString Source #

Load file and add it as a dependency.

class Embed a where Source #

Class of pure data may be embedded. An embedded expression is of type a.

Methods

embedExp :: a -> Q Exp Source #

Instances
Embed Bool Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Bool -> Q Exp Source #

Embed Double Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Double -> Q Exp Source #

Embed Float Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Float -> Q Exp Source #

Embed Int Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Int -> Q Exp Source #

Embed Name Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Name -> Q Exp Source #

Embed ByteString Source # 
Instance details

Defined in Flaw.Build

Embed ByteString Source # 
Instance details

Defined in Flaw.Build

Embed Text Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Text -> Q Exp Source #

Embed a => Embed [a] Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: [a] -> Q Exp Source #

Embed a => Embed (Vector a) Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: Vector a -> Q Exp Source #

(Embed a, Embed b) => Embed (a, b) Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: (a, b) -> Q Exp Source #

(Embed a, Embed b, Embed c) => Embed (a, b, c) Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: (a, b, c) -> Q Exp Source #

(Embed a, Embed b, Embed c, Embed d) => Embed (a, b, c, d) Source # 
Instance details

Defined in Flaw.Build

Methods

embedExp :: (a, b, c, d) -> Q Exp Source #

class EmbedIO a where Source #

Class of data may be embedded. An embedded expression is of type IO a.

Methods

embedIOExp :: a -> Q Exp Source #

Construct an expression for the data (of type 'IO a').

Instances
EmbedIO Bool Source # 
Instance details

Defined in Flaw.Build

Methods

embedIOExp :: Bool -> Q Exp Source #

EmbedIO Int Source # 
Instance details

Defined in Flaw.Build

Methods

embedIOExp :: Int -> Q Exp Source #

EmbedIO ByteString Source # 
Instance details

Defined in Flaw.Build

EmbedIO ByteString Source # 
Instance details

Defined in Flaw.Build

EmbedIO a => EmbedIO [a] Source # 
Instance details

Defined in Flaw.Build

Methods

embedIOExp :: [a] -> Q Exp Source #

(EmbedIO a, EmbedIO b) => EmbedIO (a, b) Source # 
Instance details

Defined in Flaw.Build

Methods

embedIOExp :: (a, b) -> Q Exp Source #

(EmbedIO a, EmbedIO b, EmbedIO c) => EmbedIO (a, b, c) Source # 
Instance details

Defined in Flaw.Build

Methods

embedIOExp :: (a, b, c) -> Q Exp Source #

(EmbedIO a, EmbedIO b, EmbedIO c, EmbedIO d) => EmbedIO (a, b, c, d) Source # 
Instance details

Defined in Flaw.Build

Methods

embedIOExp :: (a, b, c, d) -> Q Exp Source #

embedStringExp :: String -> Q Exp Source #

Embed string as an expression.

fileExp :: FilePath -> Q Exp Source #

EmbedIO file data as an expression.

packList :: Storable a => [a] -> ByteString Source #

Pack storable list to bytestring.

packVector :: (Storable a, Vector v a) => v a -> ByteString Source #

Pack storable vector to bytestring.

unpackVector :: (Storable a, Vector v a) => ByteString -> v a Source #

Unpack storable vector from bytestring.

embedCStringExp :: String -> Q Exp Source #

Null-terminated string literal (of type Ptr CChar).

genEmbed :: Name -> Q [Dec] Source #

Generate Embed instance for ADT.