2020-05-15 16:29:45 +03:00
|
|
|
cabal-version: 1.18
|
|
|
|
|
2021-02-18 06:24:51 +03:00
|
|
|
-- This file has been generated from package.yaml by hpack version 0.34.2.
|
2020-05-15 16:29:45 +03:00
|
|
|
--
|
|
|
|
-- see: https://github.com/sol/hpack
|
|
|
|
--
|
2021-03-29 16:05:42 +03:00
|
|
|
-- hash: f91b72904bb053decd8bf11fafaaaa6c44c48fb8f1b4046243127067afc269d3
|
2020-05-15 16:29:45 +03:00
|
|
|
|
|
|
|
name: with-utf8
|
2021-02-18 06:24:51 +03:00
|
|
|
version: 1.0.2.2
|
2020-05-15 16:29:45 +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-05-15 16:29:45 +03:00
|
|
|
The two most important modules are:
|
|
|
|
.
|
|
|
|
* "Main.Utf8"
|
|
|
|
* "System.IO.Utf8"
|
|
|
|
category: IO
|
|
|
|
homepage: https://github.com/serokell/haskell-with-utf8#readme
|
|
|
|
bug-reports: https://github.com/serokell/haskell-with-utf8/issues
|
|
|
|
author: Kirill Elagin <kirelagin@serokell.io>
|
|
|
|
maintainer: Kirill Elagin <kirelagin@serokell.io>
|
|
|
|
copyright: 2020 Serokell
|
|
|
|
license: MPL-2.0
|
|
|
|
license-file: LICENSES/MPL-2.0.txt
|
|
|
|
build-type: Simple
|
|
|
|
extra-doc-files:
|
|
|
|
CHANGELOG.md
|
|
|
|
README.md
|
|
|
|
|
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: https://github.com/serokell/haskell-with-utf8
|
|
|
|
|
|
|
|
library
|
|
|
|
exposed-modules:
|
|
|
|
Data.Text.IO.Utf8
|
|
|
|
Data.Text.Lazy.IO.Utf8
|
|
|
|
Main.Utf8
|
|
|
|
System.IO.Utf8
|
|
|
|
System.IO.Utf8.Internal
|
|
|
|
other-modules:
|
|
|
|
Paths_with_utf8
|
|
|
|
hs-source-dirs:
|
|
|
|
lib
|
|
|
|
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
|
|
|
|
build-depends:
|
2021-03-29 16:05:42 +03:00
|
|
|
base >=4.10 && <4.16
|
2020-05-15 16:29:45 +03:00
|
|
|
, safe-exceptions >=0.1 && <0.2
|
|
|
|
, text >=0.7 && <1.3
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
executable utf8-troubleshoot
|
|
|
|
main-is: Main.hs
|
|
|
|
other-modules:
|
|
|
|
Paths_with_utf8
|
|
|
|
hs-source-dirs:
|
|
|
|
app/utf8-troubleshoot
|
|
|
|
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
|
|
|
|
c-sources:
|
|
|
|
app/utf8-troubleshoot/cbits/locale.c
|
|
|
|
build-depends:
|
2021-03-29 16:05:42 +03:00
|
|
|
base >=4.10 && <4.16
|
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-05-15 16:29:45 +03:00
|
|
|
, safe-exceptions
|
2020-05-20 01:21:05 +03:00
|
|
|
, text >=0.7 && <1.3
|
|
|
|
, th-env >=0.1.0.0 && <0.2
|
2020-05-15 16:29:45 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
test-suite with-utf8-test
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Test.hs
|
|
|
|
other-modules:
|
|
|
|
Test.Utf8.Choice
|
|
|
|
Test.Utf8.ReadWrite
|
|
|
|
Test.Utf8.Set
|
|
|
|
Test.Util
|
|
|
|
Tree
|
|
|
|
Paths_with_utf8
|
|
|
|
hs-source-dirs:
|
|
|
|
test
|
|
|
|
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
|
|
|
|
build-tool-depends:
|
|
|
|
tasty-discover:tasty-discover
|
|
|
|
build-depends:
|
|
|
|
HUnit
|
2021-03-29 16:05:42 +03:00
|
|
|
, base >=4.10 && <4.16
|
2020-05-15 16:29:45 +03:00
|
|
|
, deepseq
|
|
|
|
, hedgehog
|
|
|
|
, safe-exceptions
|
|
|
|
, tasty
|
|
|
|
, tasty-hedgehog
|
|
|
|
, tasty-hunit
|
|
|
|
, temporary
|
2020-05-20 01:21:05 +03:00
|
|
|
, text >=0.7 && <1.3
|
2020-05-15 16:29:45 +03:00
|
|
|
, unix
|
|
|
|
, with-utf8
|
|
|
|
default-language: Haskell2010
|