Skip to content

Commit

Permalink
refactor: Migrate from ansi-wl-pprint to prettyprinter.
Browse files Browse the repository at this point in the history
The former is deprecated.
  • Loading branch information
iphydf committed Nov 6, 2024
1 parent 112b087 commit 94ea74a
Show file tree
Hide file tree
Showing 5 changed files with 339 additions and 266 deletions.
6 changes: 4 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ haskell_library(
":parser",
":tree-parser",
"//third_party/haskell:aeson",
"//third_party/haskell:ansi-wl-pprint",
"//third_party/haskell:array",
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
Expand All @@ -191,6 +190,8 @@ haskell_library(
"//third_party/haskell:filepath",
"//third_party/haskell:monad-parallel",
"//third_party/haskell:mtl",
"//third_party/haskell:prettyprinter",
"//third_party/haskell:prettyprinter-ansi-terminal",
"//third_party/haskell:split",
"//third_party/haskell:text",
"//third_party/haskell:transformers-compat",
Expand All @@ -203,11 +204,12 @@ hspec_test(
deps = [
":hs-cimple",
"//third_party/haskell:QuickCheck",
"//third_party/haskell:ansi-wl-pprint",
"//third_party/haskell:base",
"//third_party/haskell:data-fix",
"//third_party/haskell:extra",
"//third_party/haskell:hspec",
"//third_party/haskell:prettyprinter",
"//third_party/haskell:prettyprinter-ansi-terminal",
"//third_party/haskell:text",
"//third_party/haskell:transformers-compat",
],
Expand Down
7 changes: 5 additions & 2 deletions cimple.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ library
Language.Cimple.Lexer
Language.Cimple.Parser
Language.Cimple.ParseResult
Language.Cimple.PrettyColor
Language.Cimple.SemCheck.Includes
Language.Cimple.Tokens
Language.Cimple.TranslationUnit
Language.Cimple.TreeParser

build-depends:
aeson
, ansi-wl-pprint
, array
, base <5
, bytestring
Expand All @@ -59,6 +59,8 @@ library
, filepath
, monad-parallel
, mtl
, prettyprinter
, prettyprinter-ansi-terminal
, split
, text
, transformers-compat
Expand Down Expand Up @@ -121,11 +123,12 @@ test-suite testsuite
build-tool-depends: hspec-discover:hspec-discover
build-depends:
QuickCheck
, ansi-wl-pprint
, base <5
, cimple
, data-fix
, extra
, hspec
, prettyprinter
, prettyprinter-ansi-terminal
, text
, transformers-compat
Loading

0 comments on commit 94ea74a

Please sign in to comment.