Skip to content

Commit

Permalink
a quick and dirty fix to make the library type check with Agda 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
effectfully committed May 27, 2017
1 parent 6e78759 commit 3da2a48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
*.agdai
9 changes: 8 additions & 1 deletion Data/List.agda
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ open import OTT.Function.Elim

infixr 5 _∷_

-- It was, but this breaks inference with Agda 2.5.2.
-- list : ∀ {a} {α : Level a} -> Univ α -> Type₋₁ α
-- list A = mu $ π (enum 2) (fromTuple (pos , (A ⇨ pos ⊛ pos)))

list : {a} {α : Level a} -> Univ α -> Type₋₁ α
list A = mu $ π (enum 2) (fromTuple (pos , (A ⇨ pos ⊛ pos)))
list A = mu $ π (enum 2) λ
{ (tag nothing) -> pos
; (tag (just _)) -> A ⇨ pos ⊛ pos
}

List : {a} {α : Level a} -> Univ α -> Set
List A = ⟦ list A ⟧
Expand Down

0 comments on commit 3da2a48

Please sign in to comment.