Skip to content

Instantly share code, notes, and snippets.

@srid
Created December 10, 2016 05:10
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 srid/6cdcee6a785979e3d53dd56ba439a273 to your computer and use it in GitHub Desktop.
Save srid/6cdcee6a785979e3d53dd56ba439a273 to your computer and use it in GitHub Desktop.
No type class instance was found for
App.TurnAnimation.Transform t0
turn1
The instance head contains unknown type variables. Consider adding a type annotation.
while checking that expression \state ->
{ state: state
, effects: [ ...
]
}
has type forall model turn eff.
(Transform model turn) => { current :: model
, lastTurn :: Maybe turn
, remainingTurns :: List turn
}
-> { state :: { current :: model
, lastTurn :: Maybe turn
, remainingTurns :: List turn
}
, effects :: Array
(Aff
( channel :: CHANNEL
, err :: EXCEPTION
| eff
)
Action
)
}
while applying a function later'
of type forall e a. Int -> Aff e a -> Aff e a
to argument delay (state.lastTurn)
in value declaration withAnimateEffect
where turn1 is a rigid type variable
bound at line 37, column 1 - line 40, column 4
t0 is an unknown type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment