mirror of
https://github.com/serokell/haskell-with-utf8.git
synced 2024-09-11 06:45:36 +03:00
meta: Rename to with-utf8
This commit is contained in:
parent
6aa91803d8
commit
f1407c5e7a
@ -1,4 +1,4 @@
|
||||
# utf8 _(haskell-utf8)_
|
||||
# `with-utf8`
|
||||
|
||||
Get your IO right on the first try.
|
||||
|
||||
@ -10,7 +10,7 @@ in the modern world.
|
||||
See [this blog post][blog:post] for more details on why this library needs to
|
||||
exists and an explanation of some of the opinionated decisions it is based on.
|
||||
|
||||
[blog:post]: https://serokell.io/blog/haskell-utf8
|
||||
[blog:post]: https://serokell.io/blog/haskell-with-utf8
|
||||
|
||||
|
||||
## Use
|
||||
@ -19,10 +19,10 @@ See the documentation on Hackage for details, this is a quick summary.
|
||||
|
||||
### Step 1: Get it
|
||||
|
||||
The [library is on Hackage][hackage:utf8],
|
||||
The [library is on Hackage][hackage:with-utf8],
|
||||
go ahead and add it to the dependencies of your project.
|
||||
|
||||
[hackage:utf8]: https://hackage.haskell.org/package/utf8
|
||||
[hackage:with-utf8]: https://hackage.haskell.org/package/with-utf8
|
||||
|
||||
### Step 2: Wrap your `main`
|
||||
|
||||
|
@ -23,5 +23,5 @@ in
|
||||
if exposeFlake then
|
||||
flake
|
||||
else {
|
||||
inherit (flake.packages) haskell-utf8;
|
||||
inherit (flake.packages) with-utf8;
|
||||
}
|
||||
|
10
flake.nix
10
flake.nix
@ -15,19 +15,19 @@
|
||||
|
||||
project = pkgs.haskell-nix.stackProject {
|
||||
src = pkgs.haskell-nix.haskellLib.cleanGit {
|
||||
name = "haskell-utf8";
|
||||
name = "with-utf8";
|
||||
src = ./.;
|
||||
};
|
||||
};
|
||||
utf8 = project.utf8;
|
||||
with-utf8 = project.with-utf8;
|
||||
in {
|
||||
packages = {
|
||||
haskell-utf8 = utf8.components.library;
|
||||
with-utf8 = with-utf8.components.library;
|
||||
};
|
||||
|
||||
checks = {
|
||||
build = self.packages.haskell-utf8;
|
||||
test = utf8.checks.utf8-test;
|
||||
build = self.packages.with-utf8;
|
||||
test = with-utf8.checks.with-utf8-test;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
10
package.yaml
10
package.yaml
@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
name: utf8
|
||||
name: with-utf8
|
||||
version: 0.0.0
|
||||
synopsis: Get your IO right on the first try
|
||||
description: |
|
||||
@ -15,7 +15,7 @@ description: |
|
||||
* "Main.Utf8"
|
||||
* "System.IO.Utf8"
|
||||
|
||||
See <https://serokell.io/blog/haskell-utf8 this blog post> for why this
|
||||
See <https://serokell.io/blog/haskell-with-utf8 this blog post> for why this
|
||||
library exists and what exactly it does.
|
||||
category: IO
|
||||
|
||||
@ -23,7 +23,7 @@ author: Kirill Elagin <kirelagin@serokell.io>
|
||||
copyright: 2020 Serokell
|
||||
license-file: LICENSES/MPL-2.0.txt
|
||||
|
||||
github: serokell/haskell-utf8
|
||||
github: serokell/haskell-with-utf8
|
||||
|
||||
extra-doc-files:
|
||||
- CHANGELOG.md
|
||||
@ -45,12 +45,12 @@ library:
|
||||
- text >= 0.7
|
||||
|
||||
tests:
|
||||
utf8-test:
|
||||
with-utf8-test:
|
||||
source-dirs: test
|
||||
main: Test.hs
|
||||
|
||||
dependencies:
|
||||
- utf8
|
||||
- with-utf8
|
||||
|
||||
- base
|
||||
- deepseq
|
||||
|
Loading…
Reference in New Issue
Block a user