aoc2019-0.1.0.0: Development environment for Advent of Code challenges

Safe HaskellNone
LanguageHaskell2010

AOC.Common.Intcode

Documentation

data Memory Source #

Constructors

Mem 

Fields

Instances
Eq Memory Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

Methods

(==) :: Memory -> Memory -> Bool #

(/=) :: Memory -> Memory -> Bool #

Ord Memory Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

Show Memory Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

Generic Memory Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

Associated Types

type Rep Memory :: Type -> Type #

Methods

from :: Memory -> Rep Memory x #

to :: Rep Memory x -> Memory #

NFData Memory Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

Methods

rnf :: Memory -> () #

Monad m => MonadMem (StateT Memory m) Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

type Rep Memory Source # 
Instance details

Defined in AOC.Common.Intcode.Memory

untilHalt :: Monad m => Pipe i o u (ExceptT e m) a -> Pipe i o u m () Source #

untilFalse :: Monad m => m Bool -> m () Source #

yieldAndDie :: MonadError IErr m => o -> Pipe i o u m a Source #

yieldAndPass :: o -> Pipe o o u m u Source #

data VMErr Source #

Instances
Eq VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

Methods

(==) :: VMErr -> VMErr -> Bool #

(/=) :: VMErr -> VMErr -> Bool #

Ord VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

Methods

compare :: VMErr -> VMErr -> Ordering #

(<) :: VMErr -> VMErr -> Bool #

(<=) :: VMErr -> VMErr -> Bool #

(>) :: VMErr -> VMErr -> Bool #

(>=) :: VMErr -> VMErr -> Bool #

max :: VMErr -> VMErr -> VMErr #

min :: VMErr -> VMErr -> VMErr #

Show VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

Methods

showsPrec :: Int -> VMErr -> ShowS #

show :: VMErr -> String #

showList :: [VMErr] -> ShowS #

Generic VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

Associated Types

type Rep VMErr :: Type -> Type #

Methods

from :: VMErr -> Rep VMErr x #

to :: Rep VMErr x -> VMErr #

Exception VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

AsVMErr VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

type Rep VMErr Source # 
Instance details

Defined in AOC.Common.Intcode

data IErr Source #

Constructors

IENoInput 
IEVM VMErr 
Instances
Eq IErr Source # 
Instance details

Defined in AOC.Common.Intcode

Methods

(==) :: IErr -> IErr -> Bool #

(/=) :: IErr -> IErr -> Bool #

Ord IErr Source # 
Instance details

Defined in AOC.Common.Intcode

Methods

compare :: IErr -> IErr -> Ordering #

(<) :: IErr -> IErr -> Bool #

(<=) :: IErr -> IErr -> Bool #

(>) :: IErr -> IErr -> Bool #

(>=) :: IErr -> IErr -> Bool #

max :: IErr -> IErr -> IErr #

min :: IErr -> IErr -> IErr #

Show IErr Source # 
Instance details

Defined in AOC.Common.Intcode

Methods

showsPrec :: Int -> IErr -> ShowS #

show :: IErr -> String #

showList :: [IErr] -> ShowS #

Generic IErr Source # 
Instance details

Defined in AOC.Common.Intcode

Associated Types

type Rep IErr :: Type -> Type #

Methods

from :: IErr -> Rep IErr x #

to :: Rep IErr x -> IErr #

Exception IErr Source # 
Instance details

Defined in AOC.Common.Intcode

AsVMErr IErr Source # 
Instance details

Defined in AOC.Common.Intcode

AsIErr IErr Source # 
Instance details

Defined in AOC.Common.Intcode

type Rep IErr Source # 
Instance details

Defined in AOC.Common.Intcode

type Rep IErr = D1 (MetaData "IErr" "AOC.Common.Intcode" "aoc2019-0.1.0.0-EhTXSml1EW7BLze828MOzZ" False) (C1 (MetaCons "IENoInput" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IEVM" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 VMErr)))

class AsIErr r where Source #

Minimal complete definition

_IErr

toAsciiVM :: Monad m => VM m a -> AsciiVM m a Source #