Day24
Description
data Register Source #
Constructors
data Instruction a b Source #
data State a Source #
Fields
get :: State a -> Register -> a Source #
set :: State a -> Register -> a -> State a Source #
parser :: (MonadParsec e s m, IsString (Tokens s), Token s ~ Char, Num a) => m (Instruction Register a) Source #
run :: Integral a => [a] -> a -> [Instruction Register a] -> State a -> Maybe a Source #
runRange :: Integral a => (a, a) -> [Instruction Register (a, a)] -> State (a, a) -> Bool Source #
day24 :: Text -> Either (ParseErrorBundle Text Void) (Maybe (Integer, Integer)) Source #