Last active
July 23, 2017 18:25
-
-
Save sellout/592b40d13ca0f24721afa88c8ca15516 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| module Example | |
| interface Base (f : x -> Type) where | |
| base : (x -> Type) -> x -> Type | |
| interface Base f => Corecursive (f : x -> Type) where | |
| cbase : (x -> Type) -> x -> Type | |
| cbase {f} = base {f} | |
| -- When checking right hand side of Example.default#cbase with expected type | |
| -- (x -> | |
| -- Type) -> | |
| -- x -> | |
| -- Type | |
| -- | |
| -- Can't find implementation for Base f | |
| -- | |
| -- Possible cause: | |
| -- example.idr:8:24:When checking argument f to function Example.base: | |
| -- Type mismatch between | |
| -- x1 -> | |
| -- Type (Type of f) | |
| -- and | |
| -- x -> | |
| -- Type (Expected type) | |
| -- | |
| -- Specifically: | |
| -- Type mismatch between | |
| -- x1 | |
| -- and | |
| -- x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment