summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-03-13 01:26:05 -0400
committerAndrew Cady <d@jerkface.net>2019-03-13 01:26:05 -0400
commitffd1c8173e981584d0b766c8b5881ed2d2be5393 (patch)
treeb2fc56217777ed3d601cb541fde61e4ba3669925
parent30683d96778e70b3d5db6a1289df4ad75ac0a39a (diff)
stylish haskell
-rw-r--r--GenSCAD.hs12
-rw-r--r--shelves.hs10
2 files changed, 11 insertions, 11 deletions
diff --git a/GenSCAD.hs b/GenSCAD.hs
index 548792f..bbc1299 100644
--- a/GenSCAD.hs
+++ b/GenSCAD.hs
@@ -11,11 +11,11 @@ module GenSCAD
11, colorcubeat 11, colorcubeat
12) where 12) where
13 13
14import Linear.V3 14import Control.Lens
15import Control.Lens 15import Data.List
16import Data.List 16import Linear.V3
17import System.IO.Temp 17import System.IO.Temp
18import System.Process 18import System.Process
19 19
20 20
21v3tolist :: V3 a -> [a] 21v3tolist :: V3 a -> [a]
@@ -45,7 +45,7 @@ colorcubeat rgb d pos = color rgb $ translate pos $ cube d
45 45
46--place [x] = "ERROR" 46--place [x] = "ERROR"
47place :: [String] -> String 47place :: [String] -> String
48place [d, p] = cubeat d p 48place [d, p] = cubeat d p
49place [r, d, p] = colorcubeat r d p 49place [r, d, p] = colorcubeat r d p
50 50
51--place[o] = scad (fst o) (snd o) 51--place[o] = scad (fst o) (snd o)
diff --git a/shelves.hs b/shelves.hs
index e42fe7d..feeabfa 100644
--- a/shelves.hs
+++ b/shelves.hs
@@ -1,7 +1,7 @@
1import Linear.V3 1import Control.Lens
2import Control.Lens 2import Data.List
3import Data.List 3import GenSCAD (genscad)
4import GenSCAD (genscad) 4import Linear.V3
5 5
6shelf_thickness :: Double 6shelf_thickness :: Double
7shelf_thickness = 0.5 7shelf_thickness = 0.5
@@ -52,7 +52,7 @@ scadshelf :: String
52scadshelf = genscad $ shelves ++ sides 52scadshelf = genscad $ shelves ++ sides
53 53
54--gen_shelf :: [Fractional] -> Fractional -> Fractional -> [Char] 54--gen_shelf :: [Fractional] -> Fractional -> Fractional -> [Char]
55--gen_shelf shelf_heights depth length = 55--gen_shelf shelf_heights depth length =
56 56
57 57
58 58