from: Typeclasses for type conversion mappings
This package provides the typeclasses From and TryFrom.
The From.From typeclass provides . It is an
interface a pair of types that can be converted from one to another.From.from :: a -> b
The From.TryFrom typeclass provides . It is an interface for a pair of types that can be converted from one to
another, safely handling the possibility of a failure.From.tryFrom :: a -> Prelude.Maybe
b
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.
[Skip to Readme]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| codegen | Enable code generation test | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- from-1.0.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 1.0.0.0, 1.0.0.1 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.7 && <5) [details] |
| License | Apache-2.0 |
| Copyright | Copyright (C) 2024-2025 XT |
| Author | XT |
| Maintainer | git@xtendo.org |
| Category | Typeclass |
| Home page | https://codeberg.org/xt/from |
| Bug tracker | https://codeberg.org/xt/from/issues |
| Source repo | head: git clone https://codeberg.org/xt/from |
| Uploaded | by xt at 2025-10-24T12:41:06Z |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 5 total (5 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2025-10-24 [all 1 reports] |