aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--blazeT.cabal2
-rw-r--r--src/Text/BlazeT/Internal.hs26
-rw-r--r--stack.yaml66
4 files changed, 89 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index da61294..9286fea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@ cabal.sandbox.config
19cabal.project.local 19cabal.project.local
20report.html 20report.html
21src/Benchmarks/RunHtmlBenchmarks 21src/Benchmarks/RunHtmlBenchmarks
22TAGS
diff --git a/blazeT.cabal b/blazeT.cabal
index 8bfd200..3ecb0f4 100644
--- a/blazeT.cabal
+++ b/blazeT.cabal
@@ -1,5 +1,5 @@
1Name: blazeT 1Name: blazeT
2Version: 0.0.4 2Version: 0.0.5
3Homepage: 3Homepage:
4Bug-Reports: http://github.com/johannesgerer/blazeT/issues 4Bug-Reports: http://github.com/johannesgerer/blazeT/issues
5License: MIT 5License: MIT
diff --git a/src/Text/BlazeT/Internal.hs b/src/Text/BlazeT/Internal.hs
index fcdf944..f6f642a 100644
--- a/src/Text/BlazeT/Internal.hs
+++ b/src/Text/BlazeT/Internal.hs
@@ -63,11 +63,11 @@ module Text.BlazeT.Internal
63 , unsafeLazyByteString 63 , unsafeLazyByteString
64 64
65 -- ** Comments 65 -- ** Comments
66 , Text.Blaze.textComment 66 , textComment
67 , Text.Blaze.lazyTextComment 67 , lazyTextComment
68 , Text.Blaze.stringComment 68 , stringComment
69 , Text.Blaze.unsafeByteStringComment 69 , unsafeByteStringComment
70 , Text.Blaze.unsafeLazyByteStringComment 70 , unsafeLazyByteStringComment
71 71
72 -- ** Converting values to tags. 72 -- ** Converting values to tags.
73 , Text.Blaze.textTag 73 , Text.Blaze.textTag
@@ -273,6 +273,22 @@ lazyText :: LT.Text -> Markup
273lazyText = wrapMarkup . Text.Blaze.lazyText 273lazyText = wrapMarkup . Text.Blaze.lazyText
274{-# INLINE lazyText #-} 274{-# INLINE lazyText #-}
275 275
276
277textComment :: T.Text -> Markup
278textComment = wrapMarkup . Text.Blaze.textComment
279
280lazyTextComment :: LT.Text -> Markup
281lazyTextComment = wrapMarkup . Text.Blaze.lazyTextComment
282
283stringComment :: String -> Markup
284stringComment = wrapMarkup . Text.Blaze.stringComment
285
286unsafeByteStringComment :: BS.ByteString -> Markup
287unsafeByteStringComment = wrapMarkup . Text.Blaze.unsafeByteStringComment
288
289unsafeLazyByteStringComment :: BL.ByteString -> Markup
290unsafeLazyByteStringComment = wrapMarkup . Text.Blaze.unsafeLazyByteStringComment
291
276-- $descr1 292-- $descr1
277-- The following is an adaptation of all "Text.Blaze.Internal" exports to 293-- The following is an adaptation of all "Text.Blaze.Internal" exports to
278-- @blazeT@ types. 294-- @blazeT@ types.
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
index 0000000..397b67a
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,66 @@
1# This file was automatically generated by 'stack init'
2#
3# Some commonly used options have been documented as comments in this file.
4# For advanced use and comprehensive documentation of the format, please see:
5# http://docs.haskellstack.org/en/stable/yaml_configuration/
6
7# Resolver to choose a 'specific' stackage snapshot or a compiler version.
8# A snapshot resolver dictates the compiler version and the set of packages
9# to be used for project dependencies. For example:
10#
11# resolver: lts-3.5
12# resolver: nightly-2015-09-21
13# resolver: ghc-7.10.2
14# resolver: ghcjs-0.1.0_ghc-7.10.2
15# resolver:
16# name: custom-snapshot
17# location: "./custom-snapshot.yaml"
18resolver: lts-7.15
19
20# User packages to be built.
21# Various formats can be used as shown in the example below.
22#
23# packages:
24# - some-directory
25# - https://example.com/foo/bar/baz-0.0.2.tar.gz
26# - location:
27# git: https://github.com/commercialhaskell/stack.git
28# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
29# - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a
30# extra-dep: true
31# subdirs:
32# - auto-update
33# - wai
34#
35# A package marked 'extra-dep: true' will only be built if demanded by a
36# non-dependency (i.e. a user package), and its test suites and benchmarks
37# will not be run. This is useful for tweaking upstream packages.
38packages:
39- '.'
40# Dependency packages to be pulled from upstream that are not in the resolver
41# (e.g., acme-missiles-0.3)
42extra-deps: []
43
44# Override default flag values for local packages and extra-deps
45flags: {}
46
47# Extra package databases containing global packages
48extra-package-dbs: []
49
50# Control whether we use the GHC we find on the path
51# system-ghc: true
52#
53# Require a specific version of stack, using version ranges
54# require-stack-version: -any # Default
55# require-stack-version: ">=1.3"
56#
57# Override the architecture used by stack, especially useful on Windows
58# arch: i386
59# arch: x86_64
60#
61# Extra directories used by stack for building
62# extra-include-dirs: [/path/to/dir]
63# extra-lib-dirs: [/path/to/dir]
64#
65# Allow a newer minor version of GHC than the snapshot specifies
66# compiler-check: newer-minor \ No newline at end of file