Replaced newtype by data
This commit is contained in:
parent
420c6c6a41
commit
8194d0e384
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
*.hi
|
||||
*~
|
||||
Mandelbulb
|
||||
hglmandel
|
||||
|
|
|
@ -20,7 +20,7 @@ And the second part more focused on OpenGL and content.
|
|||
|
||||
For efficiency reason, I will not use the default Haskell `Complex` data type.
|
||||
|
||||
> newtype Complex = C (Float,Float) deriving (Show,Eq)
|
||||
> data Complex = C (Float,Float) deriving (Show,Eq)
|
||||
|
||||
|
||||
> instance Num Complex where
|
||||
|
|
Loading…
Reference in a new issue