Created
October 28, 2016 00:06
-
-
Save r00k/f80461264d670eb785dda3c0f4735723 to your computer and use it in GitHub Desktop.
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
-- TYPE MISMATCH -------------------------------------------------- src/Main.elm | |
The type annotation for `randomCircle` does not match its definition. | |
38| randomCircle : Random.Generator Circle | |
^^^^^^^^^^^^^^^^^^^^^^^ | |
The type annotation is saying: | |
Random.Generator { center : ( Int, Int ) } | |
But I am inferring that the definition has this type: | |
Random.Generator ( Int, Int ) | |
Detected errors in 1 module. |
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
type alias Circle = | |
{ center : (Int, Int) | |
} | |
randomCircle : Random.Generator Circle | |
randomCircle = | |
Random.pair (Random.int -200 200) (Random.int -200 200) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment