telomare-0.1.0.0: A simple but robust virtual machine
Safe HaskellSafe-Inferred
LanguageHaskell2010

Naturals

Documentation

debugTrace :: String -> a -> a Source #

traceSet :: (Foldable t, Show a) => t FragIndex -> (a -> a) -> a -> a Source #

data NExpr Source #

Instances

Instances details
Generic NExpr Source # 
Instance details

Defined in Naturals

Associated Types

type Rep NExpr :: Type -> Type Source #

Methods

from :: NExpr -> Rep NExpr x Source #

to :: Rep NExpr x -> NExpr Source #

Show NExpr Source # 
Instance details

Defined in Naturals

Binary NExpr Source # 
Instance details

Defined in Naturals

NFData NExpr Source # 
Instance details

Defined in Naturals

Methods

rnf :: NExpr -> () Source #

Eq NExpr Source # 
Instance details

Defined in Naturals

Methods

(==) :: NExpr -> NExpr -> Bool Source #

(/=) :: NExpr -> NExpr -> Bool Source #

Ord NExpr Source # 
Instance details

Defined in Naturals

type Rep NExpr Source # 
Instance details

Defined in Naturals

type Rep NExpr = D1 ('MetaData "NExpr" "Naturals" "telomare-0.1.0.0-inplace" 'False) ((((C1 ('MetaCons "NZero" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NPair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr))) :+: (C1 ('MetaCons "NEnv" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NSetEnv" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)))) :+: ((C1 ('MetaCons "NDefer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FragIndex)) :+: C1 ('MetaCons "NGate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr))) :+: (C1 ('MetaCons "NLeft" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)) :+: (C1 ('MetaCons "NRight" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)) :+: C1 ('MetaCons "NTrace" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "NNum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :+: C1 ('MetaCons "NAdd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr))) :+: (C1 ('MetaCons "NMult" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)) :+: C1 ('MetaCons "NPow" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)))) :+: ((C1 ('MetaCons "NApp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)) :+: C1 ('MetaCons "NOldDefer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr))) :+: (C1 ('MetaCons "NToChurch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)) :+: (C1 ('MetaCons "NTwiddle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NExpr)) :+: C1 ('MetaCons "NToNum" 'PrefixI 'False) (U1 :: Type -> Type))))))

pattern NLamNum :: Int64 -> NExpr -> NExpr Source #

pattern NPartialNum :: Int64 -> NExpr -> NExpr Source #

newtype NExprs Source #

Constructors

NExprs (Map FragIndex NResult) 

Instances

Instances details
Show NExprs Source # 
Instance details

Defined in Naturals

Eq NExprs Source # 
Instance details

Defined in Naturals

AbstractRunTime NExprs Source # 
Instance details

Defined in Telomare.RunTime

Methods

eval :: NExprs -> NExprs Source #

TelomareLike NExprs Source # 
Instance details

Defined in Telomare.RunTime

debugShow :: p -> p Source #

Orphan instances