Simplify block drawing
This commit is contained in:
@@ -9,9 +9,4 @@ drawBlock bd = case bd of
|
||||
BlockDrawMempty -> const mempty
|
||||
BlockDraws bds -> \bl -> foldMap (`drawBlock` bl) bds
|
||||
BlockDrawColHeightPoss col h ps -> const $ noPic $ colorSH col (upperBox Medium Typical h ps)
|
||||
BlockDrawBlSh x -> noPic . doBlSh x
|
||||
|
||||
doBlSh :: BlSh -> Block -> Shape
|
||||
doBlSh bs = case bs of
|
||||
BlShMempty -> const mempty
|
||||
BlShConst sh -> const sh
|
||||
BlockDrawBlSh x -> const $ noPic x
|
||||
|
||||
Reference in New Issue
Block a user