Created
June 2, 2016 06:24
-
-
Save anonymous/118bc52627d63aca9fa877a8397b895b to your computer and use it in GitHub Desktop.
the description for this gist
This file contains 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
val program: (Position => Free[Instruction, Position] = { | |
start: Position => | |
for { | |
p1 <- forward(start, 10) | |
p2 <- right(p1, Degree(90)) | |
p3 <- forward(p2, 10) | |
} yield p3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
type of
program
is(Position) => Free[Instruction, Position]
. You're missing a closing parenthesis.