Skip to content

Instantly share code, notes, and snippets.

@zraffer
Created September 28, 2014 10:01
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 zraffer/b6bb8df1601881a650ea to your computer and use it in GitHub Desktop.
Save zraffer/b6bb8df1601881a650ea to your computer and use it in GitHub Desktop.
module MySum
record ADepType : Type where
MkADepType :
(dtBase : Type) ->
(dtFiber : dtBase -> Type) ->
ADepType
record ADepSum : ADepType -> Type where
MkADepSum :
{dt : ADepType} ->
(dsBaseValue : dtBase dt) ->
(dsFiberValue : dtFiber dt dsBaseValue) ->
ADepSum dt
class Base t b where
base : t -> b
instance Base ADepType Type where
base = dtBase
instance Base (ADepSum dt) (dtBase dt) where
base = ?see
-- base = dsBaseValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment