Created
February 10, 2016 01:40
-
-
Save mvr/f677484181137527b55a to your computer and use it in GitHub Desktop.
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
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