Skip to content

Instantly share code, notes, and snippets.



Last active Jun 16, 2017
What would you like to do?
FrameCount : Nat
FrameCount = 10
data BowlingGame : Type where
MkBowlingGame : -- Create a bowling game from:
(frames: Vect FrameCount Frame) -- A vector of 10 frames
-> (bonuses : BonusRollType (last frames)) -- The bonus rolls of the last frame
-> {auto prf: ValidBonuses bonuses} -- The bonus rolls precondition
-> BowlingGame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.