1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-26 03:08:37 +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 # JavaScript
guidejs/node_modules/ guidejs/node_modules/
static/js/

View File

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

View File

@ -8,15 +8,7 @@ the "Prelude".)
module Imports module Imports
( (
module X, module X,
LByteString, LByteString
(+|),
(|+),
(+||),
(||+),
(|++|),
(||++||),
(|++||),
(||++|)
) )
where where
@ -48,44 +40,8 @@ import Data.Hashable as X
-- Lazy bytestring -- Lazy bytestring
import qualified Data.ByteString.Lazy as BSL import qualified Data.ByteString.Lazy as BSL
-- Formatting -- Formatting
import Fmt as X hiding (( #| ), ( #|| ), (|#), (|##|), import Fmt as X
(|##||), (||#), (||##|), (||##||))
import qualified Fmt as FMT (( #| ), ( #|| ), (|#), (|##|), (|##||),
(||#), (||##|), (||##||))
import Fmt.Internal (FromBuilder)
type LByteString = BSL.ByteString type LByteString = BSL.ByteString
-- LText is already provided by Data.Text.All -- 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 - text-all-0.4.1.0
- cmark-sections-0.1.0.3 - cmark-sections-0.1.0.3
- patches-vector-0.1.5.4 - patches-vector-0.1.5.4
- fmt-0.2.0.0 - fmt-0.4.0.0
- Spock-digestive-0.3.0.0 - Spock-digestive-0.3.0.0
- digestive-functors-0.8.2.0 - digestive-functors-0.8.2.0