@hackage from1.0.0.1

Typeclasses for type conversion mappings

  • Installation

  • Dependencies (1)

  • Dependents (1)

    @hackage/from-string
  • Package Flags

      codegen
       (off by default)

      Enable code generation test

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.