Skip to content

Commit

Permalink
Fix Hangman example
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinb committed Mar 25, 2017
1 parent bb29307 commit 356a5aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
File renamed without changes.
4 changes: 1 addition & 3 deletions Hangman/VectMissing.idr
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ module VectMissing
import Data.Fin
import Data.Vect

Uninhabited (Elem x []) where
uninhabited Here impossible

public export
shrink : (xs : Vect (S n) a) -> Elem x xs -> Vect n a
shrink (x :: ys) Here = ys
shrink (y :: []) (There p) = absurd p
Expand Down
4 changes: 2 additions & 2 deletions Hangman/hangman.ipkg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package hangman

modules = VectMissing, hangman
modules = VectMissing, Hangman
opts = "-p effects"

executable = hangman
main = hangman
main = Hangman

0 comments on commit 356a5aa

Please sign in to comment.