summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2022-09-13 19:47:48 -0400
committerAndrew Cady <d@jerkface.net>2022-09-13 19:47:48 -0400
commit66b694e884cafa49639a5c680068f0b7f6ca080a (patch)
treebc3107b7227165c5879f1abdf12deb3bbea0528d
parent3071a162cb7cf200033e8cd39d9e27e179fde279 (diff)
add rory shelf design
-rwxr-xr-xshelf.hs17
1 files changed, 15 insertions, 2 deletions
diff --git a/shelf.hs b/shelf.hs
index 7e3fe86..d465aa5 100755
--- a/shelf.hs
+++ b/shelf.hs
@@ -2,7 +2,6 @@
2{- stack script --resolver lts-16.31 --install-ghc 2{- stack script --resolver lts-16.31 --install-ghc
3 --ghc-options -Wall --ghc-options -Wno-unused-imports --ghc-options -Wno-name-shadowing -} 3 --ghc-options -Wall --ghc-options -Wno-unused-imports --ghc-options -Wno-name-shadowing -}
4{-# language NoImplicitPrelude #-} 4{-# language NoImplicitPrelude #-}
5{-# language DuplicateRecordFields #-}
6{-# language RecordWildCards #-} 5{-# language RecordWildCards #-}
7import Rebase.Prelude 6import Rebase.Prelude
8import Control.Lens 7import Control.Lens
@@ -46,6 +45,14 @@ bookshelf = Shelf {
46 shelves = [4, 4, 4, 3, 3] 45 shelves = [4, 4, 4, 3, 3]
47} 46}
48 47
48roryShelf :: Shelf
49roryShelf = Shelf {
50 boardLength = 6 * 12,
51 boardThickness = 5/8,
52 kickerHeight = 4 + 1/2,
53 shelves = [4, 4, 3, 3, 4]
54}
55
49pianoCubbies :: Shelf 56pianoCubbies :: Shelf
50pianoCubbies = Shelf { 57pianoCubbies = Shelf {
51 boardLength = 52 + 1%8, 58 boardLength = 52 + 1%8,
@@ -92,5 +99,11 @@ printPianoCubbies = do
92 putStrLn "-------------\n" 99 putStrLn "-------------\n"
93 printCutlist pianoCubbies 100 printCutlist pianoCubbies
94 101
102printRoryShelf :: IO ()
103printRoryShelf = do
104 putStrLn "Rory Shelf"
105 putStrLn "----------\n"
106 printCutlist roryShelf
107
95main :: IO () 108main :: IO ()
96main = printPianoCubbies 109main = printRoryShelf