Skip to content

Instantly share code, notes, and snippets.

@mvr
Created February 10, 2016 01:40
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 mvr/f677484181137527b55a to your computer and use it in GitHub Desktop.
Save mvr/f677484181137527b55a to your computer and use it in GitHub Desktop.
module Test
import Data.Fin
record AttemptA where
constructor ConstructA
goA : (n : Nat) -> Fin n -> Fin n
record AttemptB where
constructor ConstructB
goB : Fin n -> Fin n
record AttemptC where
constructor ConstructC
goC : {n : Nat} -> Fin n -> Fin n
-- Test.idr line 13 col 7:
-- When checking right hand side of Test.AttemptC.goC with expected type
-- Fin n -> Fin n
-- Type mismatch between
-- Fin n1 -> Fin n1 (Type of goC)
-- and
-- Fin n -> Fin n (Expected type)
-- Specifically:
-- Type mismatch between
-- Nat
-- and
-- Fin n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment