Skip to content

Instantly share code, notes, and snippets.

@sellout
Last active July 23, 2017 18:25
Show Gist options
  • Save sellout/592b40d13ca0f24721afa88c8ca15516 to your computer and use it in GitHub Desktop.
Save sellout/592b40d13ca0f24721afa88c8ca15516 to your computer and use it in GitHub Desktop.
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