September 2017
Beginner to intermediate
396 pages
9h 46m
English
stack new working-with-type-family simple
executable working-with-type-family
hs-source-dirs: src
main-is: Main.hs
default-language: Haskell2010
build-depends: base >= 4.7 && < 5
, vector-space
module Main where import Data.VectorSpace
diagonal :: (Double, Double, Double) diagonal = (1, 1, 1)
xaxis :: (Double, Double, Double) xaxis = (1, 0, 0)
Read now
Unlock full access