Skip to content

littlefroggies/firstclassinstances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firstclassinstances

Some approaches to implementation of type class inheritance in Haskell.

Description

ClassInheritanceBasic.hs contains initial approach with less dependencies on GHC's pragmas.

ClassInheritanceProxified.hs uses ConstraintKinds magic (based on this article).

Both approaches provide examples on manipulations with the following tree type:

data Tree a
  = Node (Tree a) (Tree a)
  | Leaf a

About

Some approaches on implementation of type class inheritance in Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •