-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from leftaroundabout/devel/generic-instances
Give the classes default implementations, using GHC generics
- Loading branch information
Showing
6 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- | | ||
-- Module : Data.VectorSpace.Generic | ||
-- Copyright : (c) Conal Elliott and Justus Sagemüller 2017 | ||
-- License : BSD3 | ||
-- | ||
-- Maintainer : conal@conal.net, (@) jsagemue $ uni-koeln.de | ||
-- Stability : experimental | ||
-- | ||
-- Underpinnings of the type that represents vector / affine / etc. spaces | ||
-- with GHC generics | ||
|
||
module Data.VectorSpace.Generic where | ||
|
||
|
||
import qualified GHC.Generics as Gnrx | ||
|
||
import Data.Void | ||
|
||
|
||
type VRep v = Gnrx.Rep v Void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters