Skip to content

Instantly share code, notes, and snippets.

@tarquin-the-brave
Created May 12, 2020 13:31
Show Gist options
  • Select an option

  • Save tarquin-the-brave/4a03f904cd0a09108f24b5932142af8c to your computer and use it in GitHub Desktop.

Select an option

Save tarquin-the-brave/4a03f904cd0a09108f24b5932142af8c to your computer and use it in GitHub Desktop.
data Program = Program {
input::[Int],
intCode::[Int],
status::Status,
-- ip: Instruction Pointer
ip::Int,
-- rb: Relative Base
rb::Int,
output::[Int]
} deriving(Show, Eq)
data Status = Running | AwaitInput | Terminated | Crashed deriving(Show, Eq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment