1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-22 11:33:34 +03:00

Merge pull request #188 from aelve/new-fmt-version

Use fmt-0.4.0 with renewed operators +| |+
This commit is contained in:
Artyom Kazak 2017-08-13 21:13:05 +03:00 committed by GitHub
commit 30f0c24e40
4 changed files with 5 additions and 48 deletions

1
.gitignore vendored
View File

@ -33,3 +33,4 @@ tags
# JavaScript
guidejs/node_modules/
static/js/

View File

@ -103,7 +103,7 @@ library
, feed >= 0.3.11 && < 0.4
, filemanip == 0.3.6.*
, filepath
, fmt == 0.2.*
, fmt == 0.4.*
, focus
, friendly-time == 0.4.*
, fsnotify == 0.2.*

View File

@ -8,15 +8,7 @@ the "Prelude".)
module Imports
(
module X,
LByteString,
(+|),
(|+),
(+||),
(||+),
(|++|),
(||++||),
(|++||),
(||++|)
LByteString
)
where
@ -48,44 +40,8 @@ import Data.Hashable as X
-- Lazy bytestring
import qualified Data.ByteString.Lazy as BSL
-- Formatting
import Fmt as X hiding (( #| ), ( #|| ), (|#), (|##|),
(|##||), (||#), (||##|), (||##||))
import qualified Fmt as FMT (( #| ), ( #|| ), (|#), (|##|), (|##||),
(||#), (||##|), (||##||))
import Fmt.Internal (FromBuilder)
import Fmt as X
type LByteString = BSL.ByteString
-- LText is already provided by Data.Text.All
infixr 1 +|
(+|) :: FromBuilder b => Builder -> Builder -> b
(+|) = (FMT.#|)
infixr 1 |+
(|+) :: (Buildable a, FromBuilder b) => a -> Builder -> b
(|+) = (FMT.|#)
infixr 1 +||
(+||) :: FromBuilder b => Builder -> Builder -> b
(+||) = (FMT.#||)
infixr 1 ||+
(||+) :: (Show a, FromBuilder b) => a -> Builder -> b
(||+) = (FMT.||#)
infixr 1 |++|
(|++|) :: (Buildable a, FromBuilder b) => a -> Builder -> b
(|++|) = (FMT.|##|)
infixr 1 ||++||
(||++||) :: (Show a, FromBuilder b) => a -> Builder -> b
(||++||) = (FMT.||##||)
infixr 1 ||++|
(|++||) :: (Show a, FromBuilder b) => a -> Builder -> b
(|++||) = (FMT.|##||)
infixr 1 |++||
(||++|) :: (Buildable a, FromBuilder b) => a -> Builder -> b
(||++|) = (FMT.||##|)

View File

@ -15,6 +15,6 @@ extra-deps:
- text-all-0.4.1.0
- cmark-sections-0.1.0.3
- patches-vector-0.1.5.4
- fmt-0.2.0.0
- fmt-0.4.0.0
- Spock-digestive-0.3.0.0
- digestive-functors-0.8.2.0