Skip to content

Commit 16d8d3b

Browse files
committed
Fix #174 Move Codes to ansi-terminal-types
1 parent d359baa commit 16d8d3b

File tree

6 files changed

+25
-11
lines changed

6 files changed

+25
-11
lines changed

Contributing.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Many other packages depend on `ansi-terminal`. As at November 2024, over 4,800
1+
Many other packages depend on `ansi-terminal`. As at July 2025, almost 5,000
22
packages on [Hackage](https:https://hackage.haskell.org/) depend on it, directly
33
or indirectly. Consider raising an
44
[issue](https://github.com/UnkindPartition/ansi-terminal/issues) to
@@ -9,13 +9,14 @@ The `ansi-terminal` and `ansi-terminal-types` packages aim to have:
99
* a high degree of backwards compatibility with earlier versions of GHC; and
1010
* comprehensive and high-quality Haddock documentation.
1111

12-
As of `ansi-terminal-1.0.1`, the package aims to be compatible with versions
12+
As of `ansi-terminal-1.1.3`, the package aims to be compatible with versions
1313
of GHC from GHC 7.10.1 (released March 2015). GHC 7.10.1 comes with:
1414
* `base-4.8.0.0`
1515

1616
The `ansi-terminal` package also depends on:
17-
* `ansi-terminal-types`, which exposes module `System.Console.ANSI.Types`. The
18-
package is provided to avoid circular dependencies in some circumstances; and
17+
* `ansi-terminal-types`, which exposes modules `System.Console.ANSI.Codes` and
18+
`System.Console.ANSI.Types`. The package is provided to avoid circular
19+
dependencies in some circumstances; and
1920
* `colour-2.1.0` or later, used for 24-bit colour (`Colour`, `RGB`, `toSRGB` and
2021
`toSRGB24`).
2122

ansi-terminal-types/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
Changes
22
=======
33

4+
Version 1.1.3
5+
-------------
6+
7+
* Expose `System.Console.ANSI.Codes`, spun out of the `ansi-terminal-1.1.2`
8+
package.
9+
410
Version 1.1
5-
--------------
11+
-----------
612

713
* Add `Underlining` constructor to type `ConsoleLayer`.
814
* Add `CurlyUnderline`, `DottedUnderline`, and `DashedUnderline` constructors to

ansi-terminal-types/ansi-terminal-types.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Cabal-Version: 1.22
22
Name: ansi-terminal-types
3-
Version: 1.1
3+
Version: 1.1.3
44
Category: User Interfaces
55
Synopsis: Types and functions used to represent SGR aspects
66
Description: The \'ANSI\' standards refer to the visual style of
@@ -25,7 +25,8 @@ Source-repository head
2525

2626
Library
2727
Hs-Source-Dirs: src
28-
Exposed-Modules: System.Console.ANSI.Types
28+
Exposed-Modules: System.Console.ANSI.Codes
29+
, System.Console.ANSI.Types
2930
Build-Depends: base >= 4.8.0.0 && < 5
3031
, colour >= 2.1.0
3132
Default-Extensions: CPP
File renamed without changes.

ansi-terminal/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changes
22
=======
33

4+
Version 1.1.3
5+
-------------
6+
7+
* Module `System.Console.ANSI.Codes` spun out to dependency package
8+
`ansi-terminal-types-1.1.3`.
9+
410
Version 1.1.2
511
-------------
612

ansi-terminal/ansi-terminal.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Cabal-Version: 1.22
22
Name: ansi-terminal
3-
Version: 1.1.2
3+
Version: 1.1.3
44
Category: User Interfaces
55
Synopsis: Simple ANSI terminal support
66
Description: ANSI terminal support for Haskell: allows cursor movement,
@@ -30,16 +30,16 @@ Flag Example
3030
Library
3131
Hs-Source-Dirs: src
3232
Exposed-Modules: System.Console.ANSI
33-
System.Console.ANSI.Codes
3433

3534
-- We re-export all of ansi-terminal-types to aid compatibility for
3635
-- downstream users.
37-
Reexported-Modules: System.Console.ANSI.Types
36+
Reexported-Modules: System.Console.ANSI.Codes
37+
, System.Console.ANSI.Types
3838

3939
Other-Modules: System.Console.ANSI.Internal
4040

4141
Build-Depends: base >= 4.8.0.0 && < 5
42-
, ansi-terminal-types == 1.1
42+
, ansi-terminal-types == 1.1.3
4343
, colour >= 2.1.0
4444
if os(windows)
4545
Hs-Source-Dirs: win

0 commit comments

Comments
 (0)