2020-02-16 03:08:31 +03:00
|
|
|
# SPDX-FileCopyrightText: 2020 Serokell <https://serokell.io/>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-02-27 06:00:59 +03:00
|
|
|
name: with-utf8
|
2024-01-17 00:07:28 +03:00
|
|
|
version: 1.1.0.0
|
2020-02-18 04:00:13 +03:00
|
|
|
synopsis: Get your IO right on the first try
|
|
|
|
description: |
|
|
|
|
This minimalistic library helps you navigate the world of text encodings
|
|
|
|
avoiding @invalid argument (invalid byte sequence)@
|
|
|
|
and @invalid argument (invalid character)@ in runtime.
|
|
|
|
|
2020-06-11 15:56:10 +03:00
|
|
|
See <https://serokell.io/blog/haskell-with-utf8 this blog post> for why this
|
|
|
|
library exists and what exactly it does.
|
|
|
|
|
2020-02-18 04:00:13 +03:00
|
|
|
The two most important modules are:
|
|
|
|
|
|
|
|
* "Main.Utf8"
|
|
|
|
* "System.IO.Utf8"
|
2020-02-18 08:30:29 +03:00
|
|
|
category: IO
|
2020-02-16 03:08:31 +03:00
|
|
|
|
|
|
|
author: Kirill Elagin <kirelagin@serokell.io>
|
|
|
|
copyright: 2020 Serokell
|
|
|
|
license-file: LICENSES/MPL-2.0.txt
|
|
|
|
|
2020-02-27 06:00:59 +03:00
|
|
|
github: serokell/haskell-with-utf8
|
2020-02-16 03:08:31 +03:00
|
|
|
|
|
|
|
extra-doc-files:
|
|
|
|
- CHANGELOG.md
|
|
|
|
- README.md
|
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
- -Wall
|
|
|
|
- -Wcompat
|
|
|
|
- -Wincomplete-record-updates
|
|
|
|
- -Wincomplete-uni-patterns
|
|
|
|
- -Wredundant-constraints
|
|
|
|
|
2020-05-20 01:21:05 +03:00
|
|
|
dependencies:
|
2023-11-24 07:18:15 +03:00
|
|
|
- base >= 4.10 && < 4.20
|
|
|
|
- text >= 0.7 && < 2.2
|
2020-05-20 01:21:05 +03:00
|
|
|
|
2020-02-16 03:08:31 +03:00
|
|
|
library:
|
|
|
|
source-dirs: lib
|
|
|
|
|
|
|
|
dependencies:
|
2020-02-27 06:46:45 +03:00
|
|
|
- safe-exceptions >= 0.1 && < 0.2 # only really needed for polymorphic bracket
|
2020-02-16 03:15:52 +03:00
|
|
|
|
2020-04-21 01:38:55 +03:00
|
|
|
executables:
|
|
|
|
utf8-troubleshoot:
|
|
|
|
source-dirs: app/utf8-troubleshoot
|
|
|
|
main: Main.hs
|
|
|
|
|
2020-04-21 21:24:26 +03:00
|
|
|
c-sources: app/utf8-troubleshoot/cbits/locale.c
|
|
|
|
|
2020-04-21 01:38:55 +03:00
|
|
|
dependencies:
|
2020-05-20 01:21:05 +03:00
|
|
|
- directory >= 1.2.5.0 && < 1.4
|
|
|
|
- filepath >= 1.0 && < 1.5
|
|
|
|
- process >= 1.0.1.1 && < 1.7
|
2020-04-21 13:47:32 +03:00
|
|
|
- safe-exceptions
|
2020-05-20 01:21:05 +03:00
|
|
|
- th-env >= 0.1.0.0 && < 0.2
|
2020-04-21 01:38:55 +03:00
|
|
|
|
2020-02-16 03:15:52 +03:00
|
|
|
tests:
|
2020-02-27 06:00:59 +03:00
|
|
|
with-utf8-test:
|
2020-02-16 03:15:52 +03:00
|
|
|
source-dirs: test
|
|
|
|
main: Test.hs
|
|
|
|
|
|
|
|
dependencies:
|
2020-02-27 06:00:59 +03:00
|
|
|
- with-utf8
|
2020-02-16 03:15:52 +03:00
|
|
|
|
|
|
|
- deepseq
|
|
|
|
- safe-exceptions
|
|
|
|
- temporary
|
2020-02-17 08:52:01 +03:00
|
|
|
- unix
|
2020-02-16 03:15:52 +03:00
|
|
|
|
|
|
|
- hedgehog
|
|
|
|
- HUnit
|
|
|
|
- tasty
|
|
|
|
- tasty-hedgehog
|
|
|
|
- tasty-hunit
|
|
|
|
|
|
|
|
build-tools:
|
|
|
|
- tasty-discover:tasty-discover
|