cabal-version: 1.12 -- This file has been generated from package.yaml by hpack version 0.37.0. -- -- see: https://github.com/sol/hpack name: from version: 1.0.0.0 synopsis: Typeclasses for type conversion mappings description: This package provides the typeclasses 'From' and 'TryFrom'. . The 'From.From' typeclass provides @'From.from' :: a -> b@. It is an interface a pair of types that can be converted from one to another. . The 'From.TryFrom' typeclass provides @'From.tryFrom' :: a -> 'Prelude.Maybe' b@. It is an interface for a pair of types that can be converted from one to another, safely handling the possibility of a failure. . Default 'From.From' instances are provided for some integral types in base, using 'Prelude.fromIntegral'. . This is the core package. This package itself is not spectacularly useful. One example of immediate usefulness would be the @from-string@ package. . If you are interested, you may want to check the project @README.md@ (not the package @README.md@) as well. category: Typeclass homepage: https://codeberg.org/xt/from bug-reports: https://codeberg.org/xt/from/issues author: XT maintainer: git@xtendo.org copyright: Copyright (C) 2024-2025 XT license: Apache-2.0 license-file: LICENSE build-type: Simple extra-source-files: README.md CHANGELOG.md source-repository head type: git location: https://codeberg.org/xt/from library exposed-modules: From other-modules: From.Classes From.Num Paths_from hs-source-dirs: src ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints build-depends: base >=4.7 && <5 default-language: Haskell2010 test-suite from-test type: exitcode-stdio-1.0 main-is: Main.hs other-modules: Paths_from hs-source-dirs: test ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints build-depends: base >=4.7 && <5 , bytestring , rawfilepath , unix default-language: Haskell2010