1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

🔥 makeLine.

This commit is contained in:
Rob Rix 2016-03-09 01:56:59 -05:00
parent d18e044d5c
commit 51d36140c5

View File

@ -6,10 +6,6 @@ import Data.Monoid
newtype Line a = Line { unLine :: [a] } newtype Line a = Line { unLine :: [a] }
deriving (Eq, Foldable, Functor, Show, Traversable) deriving (Eq, Foldable, Functor, Show, Traversable)
-- | Create a line from a list of items.
makeLine :: [a] -> Line a
makeLine = Line
-- | Transform the line by applying a function to a list of all the items in the -- | Transform the line by applying a function to a list of all the items in the
-- | line. -- | line.
wrapLineContents :: ([a] -> b) -> Line a -> Line b wrapLineContents :: ([a] -> b) -> Line a -> Line b