Created
May 12, 2020 13:31
-
-
Save tarquin-the-brave/4a03f904cd0a09108f24b5932142af8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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