Skip to content

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages