DeepDarkFantasy-0.2017.4.9: A DSL for creating neural network.

Safe HaskellSafe
LanguageHaskell2010

DDF.UnHOAS

Documentation

newtype UnHOAS repr h x Source #

Constructors

UnHOAS 

Fields

Instances

DBI repr => DBI (UnHOAS repr) Source # 

Methods

z :: UnHOAS repr (a, h) a Source #

s :: UnHOAS repr h b -> UnHOAS repr (a, h) b Source #

abs :: UnHOAS repr (a, h) b -> UnHOAS repr h (a -> b) Source #

app :: UnHOAS repr h (a -> b) -> UnHOAS repr h a -> UnHOAS repr h b Source #

hoas :: (UnHOAS repr (a, h) a -> UnHOAS repr (a, h) b) -> UnHOAS repr h (a -> b) Source #

com :: UnHOAS repr h ((b -> c) -> (a -> b) -> a -> c) Source #

flip :: UnHOAS repr h ((a -> b -> c) -> b -> a -> c) Source #

id :: UnHOAS repr h (a -> a) Source #

const :: UnHOAS repr h (a -> b -> a) Source #

scomb :: UnHOAS repr h ((a -> b -> c) -> (a -> b) -> a -> c) Source #

dup :: UnHOAS repr h ((a -> a -> b) -> a -> b) Source #

let_ :: UnHOAS repr h (a -> (a -> b) -> b) Source #

Double r => Double (UnHOAS r) Source # 
Float r => Float (UnHOAS r) Source # 
Option r => Option (UnHOAS r) Source # 

Methods

nothing :: UnHOAS r h (Maybe a) Source #

just :: UnHOAS r h (a -> Maybe a) Source #

optionMatch :: UnHOAS r h (b -> (a -> b) -> Maybe a -> b) Source #

Prod r => Prod (UnHOAS r) Source # 

Methods

mkProd :: UnHOAS r h (a -> b -> (a, b)) Source #

zro :: UnHOAS r h ((a, b) -> a) Source #

fst :: UnHOAS r h ((a, b) -> b) Source #

swap :: UnHOAS r h ((x, y) -> (y, x)) Source #

curry :: UnHOAS r h (((a, b) -> c) -> a -> b -> c) Source #

uncurry :: UnHOAS r h ((a -> b -> c) -> (a, b) -> c) Source #

Dual r => Dual (UnHOAS r) Source # 

Methods

dual :: UnHOAS r h ((x, y) -> Dual x y) Source #

runDual :: UnHOAS r h (Dual x y -> (x, y)) Source #

mkDual :: UnHOAS r h (x -> y -> Dual x y) Source #

dualOrig :: UnHOAS r h (Dual x y -> x) Source #

dualDiff :: UnHOAS r h (Dual x y -> y) Source #

Map r => Map (UnHOAS r) Source # 

Methods

empty :: UnHOAS r h (Map k a) Source #

singleton :: UnHOAS r h (k -> a -> Map k a) Source #

lookup :: Ord k => UnHOAS r h (k -> Map k a -> Maybe a) Source #

alter :: Ord k => UnHOAS r h ((Maybe a -> Maybe a) -> k -> Map k a -> Map k a) Source #

mapMap :: UnHOAS r h ((a -> b) -> Map k a -> Map k b) Source #

Char r => Char (UnHOAS r) Source # 

Methods

char :: Char -> UnHOAS r h Char Source #

Bool r => Bool (UnHOAS r) Source # 

Methods

bool :: Bool -> UnHOAS r h Bool Source #

ite :: UnHOAS r h (a -> a -> Bool -> a) Source #

Bimap r => Bimap (UnHOAS r) Source # 
Lang r => Lang (UnHOAS r) Source # 

Methods

fix :: UnHOAS r h ((a -> a) -> a) Source #

left :: UnHOAS r h (a -> Either a b) Source #

right :: UnHOAS r h (b -> Either a b) Source #

sumMatch :: UnHOAS r h ((a -> c) -> (b -> c) -> Either a b -> c) Source #

unit :: UnHOAS r h () Source #

exfalso :: UnHOAS r h (Void -> a) Source #

ioRet :: UnHOAS r h (a -> IO a) Source #

ioBind :: UnHOAS r h (IO a -> (a -> IO b) -> IO b) Source #

ioMap :: UnHOAS r h ((a -> b) -> IO a -> IO b) Source #

nil :: UnHOAS r h [a] Source #

cons :: UnHOAS r h (a -> [a] -> [a]) Source #

listMatch :: UnHOAS r h (b -> (a -> [a] -> b) -> [a] -> b) Source #

listAppend :: UnHOAS r h ([a] -> [a] -> [a]) Source #

writer :: UnHOAS r h ((a, w) -> Writer w a) Source #

runWriter :: UnHOAS r h (Writer w a -> (a, w)) Source #

float2Double :: UnHOAS r h (Float -> Double) Source #

double2Float :: UnHOAS r h (Double -> Float) Source #

undefined :: UnHOAS r h a Source #

state :: UnHOAS r h ((x -> (y, x)) -> State x y) Source #

runState :: UnHOAS r h (State x y -> x -> (y, x)) Source #

putStrLn :: UnHOAS r h (String -> IO ()) Source #