DeepDarkFantasy-0.2017.8.4: A DSL for creating neural network.

Safe HaskellSafe
LanguageHaskell2010

DDF.Option

Documentation

class DBI r => Option r where Source #

Minimal complete definition

nothing, just, optionMatch

Methods

nothing :: r h (Maybe a) Source #

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

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

Instances

Option Show Source # 

Methods

nothing :: Show h (Maybe a) Source #

just :: Show h (a -> Maybe a) Source #

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

Option Size Source # 

Methods

nothing :: Size h (Maybe a) Source #

just :: Size h (a -> Maybe a) Source #

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

Option UInt Source # 

Methods

nothing :: UInt h (Maybe a) Source #

just :: UInt h (a -> Maybe a) Source #

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

(Prod r, Option r) => Option (UnLiftEnv r) Source # 

Methods

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

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

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

just1 :: Option r => r h a -> r h (Maybe a) Source #

module DDF.DBI