cake3-0.2.1.0: Third cake the Makefile EDSL

Safe HaskellNone

Development.Cake3.Ext.UrWeb

Synopsis

Documentation

data Urp Source

Constructors

Urp 

Fields

urp :: File
 
uexe :: Maybe File
 
uhdr :: [UrpHdrToken]
 
umod :: [UrpModToken]
 

Instances

newtype UWLib Source

Constructors

UWLib Urp 

newtype UWExe Source

Constructors

UWExe Urp 

data UrpState Source

Constructors

UrpState 

Fields

urpst :: Urp
 

newtype UrpGen m a Source

Constructors

UrpGen 

Fields

unUrpGen :: StateT UrpState m a
 

Instances

liftUrp :: t -> tSource

newtype UrEmbed Source

Constructors

Urembed File 

Instances

ffi :: MonadMake m => File -> UrpGen m ()Source

sql :: MonadMake m => File -> UrpGen m ()Source

data JSFunc Source

Constructors

JSFunc 

Fields

urdecl :: String
 
urname :: String
 
jsname :: String
 

Instances

data JSType Source

Constructors

JSType 

Fields

urtdecl :: String
 

Instances

parse_js :: ByteString -> Make (Either String ([JSType], [JSFunc]))Source

Parse the JavaScript file, extract top-level functions, convert their signatures into Ur/Web format, return them as the list of strings

bin :: (MonadIO m, MonadMake m) => File -> File -> UrpGen m ()Source