Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Peyton Jones
committed
Aug 22, 2012
1 parent
51fdfe4
commit 90f5c15
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
|
||
T3621.hs:21:21: | ||
Couldn't match type `s' with `state' | ||
`s' is an unknown type variable | ||
`state' is an unknown type variable | ||
When using functional dependencies to combine | ||
MonadState s (State s), | ||
arising from the dependency `m -> s' | ||
in the instance declaration at T3621.hs:18:10 | ||
MonadState state (State s), | ||
arising from the 'deriving' clause of a data type declaration | ||
at T3621.hs:21:21-36 | ||
No instance for (MonadState state (State s)) | ||
arising from the 'deriving' clause of a data type declaration | ||
Possible fix: | ||
add an instance declaration for (MonadState state (State s)) | ||
or use a standalone 'deriving instance' declaration, | ||
so you can specify the instance context yourself | ||
When deriving the instance for (MonadState state (WrappedState s)) |