Fixed import issues in last merge
Getty Ritter
8 years ago
12 | 12 |
cabal-version: >= 1.2
|
13 | 13 |
|
14 | 14 |
library
|
15 | |
-- exposed-modules:
|
| 15 |
exposed-modules:
|
16 | 16 |
ghc-options: -Wall
|
17 | |
build-depends: base >=4.7 && <4.9
|
| 17 |
build-depends: base >=4.7 && <4.9,
|
| 18 |
ptolemy-core,
|
| 19 |
ptolemy-reader-slackdown,
|
| 20 |
ptolemy-writer-html
|
18 | 21 |
default-language: Haskell2010
|
19 | 22 |
default-extensions: OverloadedStrings,
|
20 | 23 |
ScopedTypeVariables
|
2 | 2 |
|
3 | 3 |
import Data.Text (Text)
|
4 | 4 |
import Data.Map.Strict (Map)
|
5 | |
import Data.Vector (Vector)
|
| 5 |
import Data.Vector (Vector, fromList)
|
6 | 6 |
|
7 | 7 |
type Reader = Text -> Either String Ptolemy
|
8 | 8 |
type Writer = Ptolemy -> Text
|
|
26 | 26 |
deriving (Eq, Show)
|
27 | 27 |
|
28 | 28 |
vec :: [a] -> Vector a
|
29 | |
vec = V.fromList
|
| 29 |
vec = fromList
|
30 | 30 |
|
31 | 31 |
data Block
|
32 | 32 |
= Plain Chunk
|