Skip to content

Instantly share code, notes, and snippets.

@r00k
Created October 28, 2016 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r00k/f80461264d670eb785dda3c0f4735723 to your computer and use it in GitHub Desktop.
Save r00k/f80461264d670eb785dda3c0f4735723 to your computer and use it in GitHub Desktop.
-- 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.
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