DeepDarkFantasy-0.2017.4.9: A DSL for creating neural network.
DDF.UnHOAS
newtype UnHOAS repr h x Source #
Constructors
Fields
Instances
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 :: Double -> UnHOAS r h Double Source #
doubleZero :: UnHOAS r h Double Source #
doubleOne :: UnHOAS r h Double Source #
doublePlus :: UnHOAS r h (Double -> Double -> Double) Source #
doubleMinus :: UnHOAS r h (Double -> Double -> Double) Source #
doubleMult :: UnHOAS r h (Double -> Double -> Double) Source #
doubleDivide :: UnHOAS r h (Double -> Double -> Double) Source #
doubleExp :: UnHOAS r h (Double -> Double) Source #
float :: Float -> UnHOAS r h Float Source #
floatZero :: UnHOAS r h Float Source #
floatOne :: UnHOAS r h Float Source #
floatPlus :: UnHOAS r h (Float -> Float -> Float) Source #
floatMinus :: UnHOAS r h (Float -> Float -> Float) Source #
floatMult :: UnHOAS r h (Float -> Float -> Float) Source #
floatDivide :: UnHOAS r h (Float -> Float -> Float) Source #
floatExp :: UnHOAS r h (Float -> Float) Source #
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 #
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 :: 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 #
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 :: Char -> UnHOAS r h Char Source #
bool :: Bool -> UnHOAS r h Bool Source #
ite :: UnHOAS r h (a -> a -> Bool -> a) Source #
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 #