Skip to content

Commit

Permalink
ansi-terminal-0.7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
borsboom committed Dec 6, 2017
1 parent df3a9b4 commit 1342f64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Text/PrettyPrint/Leijen/Extended.hs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ instance Display (Doc a) where
type AnsiDoc = Doc AnsiAnn

newtype AnsiAnn = AnsiAnn [SGR]
deriving (Eq, Ord, Show, Monoid)
deriving (Eq, Show, Monoid)

class HasAnsiAnn a where
getAnsiAnn :: a -> AnsiAnn
Expand Down Expand Up @@ -297,6 +297,7 @@ data SGRTag
| TagSwapForegroundBackground
| TagColorForeground
| TagColorBackground
| TagRGBColor
deriving (Eq, Ord)

getSGRTag :: SGR -> SGRTag
Expand All @@ -309,3 +310,4 @@ getSGRTag SetVisible{} = TagVisible
getSGRTag SetSwapForegroundBackground{} = TagSwapForegroundBackground
getSGRTag (SetColor Foreground _ _) = TagColorForeground
getSGRTag (SetColor Background _ _) = TagColorBackground
getSGRTag SetRGBColor{} = TagRGBColor
3 changes: 2 additions & 1 deletion stack-nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: nightly-2017-11-25
resolver: nightly-2017-12-06
nix:
# --nix on the command-line to enable.
enable: false
Expand All @@ -8,3 +8,4 @@ nix:
extra-deps:
- bindings-uname-0.1
- unliftio-0.2.0.0
- ansi-terminal-0.7.1.1
2 changes: 2 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ extra-deps:
- hsc2hs-0.68.2
- hpack-0.20.0
- unliftio-0.2.0.0
- ansi-terminal-0.7.1.1
- ansi-wl-pprint-0.6.8.1

0 comments on commit 1342f64

Please sign in to comment.