From 90e730eaf297568b38b40d8d288781ef16844c71 Mon Sep 17 00:00:00 2001 From: Kirill Elagin Date: Fri, 15 May 2020 16:29:45 +0300 Subject: [PATCH] meta: Commit the .cabal file --- .gitignore | 1 - with-utf8.cabal | 104 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 with-utf8.cabal diff --git a/.gitignore b/.gitignore index 73ea245..2fd2fad 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ # SPDX-License-Identifier: MPL-2.0 .stack-work/ -/*.cabal diff --git a/with-utf8.cabal b/with-utf8.cabal new file mode 100644 index 0000000..d211795 --- /dev/null +++ b/with-utf8.cabal @@ -0,0 +1,104 @@ +cabal-version: 1.18 + +-- This file has been generated from package.yaml by hpack version 0.33.0. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: 1ea347833d52b624ed883ebcc39e185040111f473bcec86b8026852eb7efea20 + +name: with-utf8 +version: 1.0.1.0 +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. + . + The two most important modules are: + . + * "Main.Utf8" + * "System.IO.Utf8" + . + See for why this + library exists and what exactly it does. +category: IO +homepage: https://github.com/serokell/haskell-with-utf8#readme +bug-reports: https://github.com/serokell/haskell-with-utf8/issues +author: Kirill Elagin +maintainer: Kirill Elagin +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: + base >=4.10 && <4.15 + , 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: + base + , directory + , filepath + , process + , safe-exceptions + , th-env + 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 + , base + , deepseq + , hedgehog + , safe-exceptions + , tasty + , tasty-hedgehog + , tasty-hunit + , temporary + , text + , unix + , with-utf8 + default-language: Haskell2010