@@ -2,20 +2,18 @@
2{-# LANGUAGE BangPatterns #-}
2{-# LANGUAGE BangPatterns #-}
3{-# LANGUAGE NamedFieldPuns #-}
3{-# LANGUAGE NamedFieldPuns #-}
4{-# LANGUAGE GADTs #-}
4{-# LANGUAGE GADTs #-}
5−{- | A picture is translated into a sequences of state changes and
5+-- | A picture is translated into a sequences of state changes and
6− - character spans. State changes are currently limited to new attribute
6+-- character spans. State changes are currently limited to new attribute
7− - values. The attribute is applied to all following spans. Including
7+-- values. The attribute is applied to all following spans. Including
8− - spans of the next row. The nth element of the sequence represents the
8+-- spans of the next row. The nth element of the sequence represents the
9− - nth row (from top to bottom) of the picture to render.
9+-- nth row (from top to bottom) of the picture to render.
11− - A span op sequence will be defined for all rows and columns (and no
11+-- A span op sequence will be defined for all rows and columns (and no
12− - more) of the region provided with the picture to `spansForPic`.
12+-- more) of the region provided with the picture to `spansForPic`.
14− - todo: Partition attribute changes into multiple categories according
14+-- todo: Partition attribute changes into multiple categories according
15− - to the serialized representation of the various attributes.
15+-- to the serialized representation of the various attributes.
17−module Graphics.Vty.Span
16+module Graphics.Vty.Span where
20import Graphics.Vty.Prelude
18import Graphics.Vty.Prelude