Commit Graph

135 Commits

Author SHA1 Message Date
Taylor Fausak
a2a289eae2 Add identity From instance
Fixes #25.
2021-05-26 08:54:36 -04:00
Taylor Fausak
85c56e0a46
Version 0.3.1.0 2021-05-15 11:35:31 -04:00
Taylor Fausak
1994c79b23
Merge pull request #24 from tfausak/gh23-time
Add conversion instances for types from the `time` library
2021-05-15 11:35:05 -04:00
Taylor Fausak
b025820923
Fix documentation 2021-05-15 11:20:47 -04:00
Taylor Fausak
ed4df8c6fb Add conversion instances for types from the time library 2021-05-15 14:02:51 +00:00
Taylor Fausak
2f1a589629
Fix typo 2021-05-14 11:09:53 -04:00
Taylor Fausak
cefd83bdac
Version 0.3.0.1 2021-05-13 19:38:50 -04:00
Taylor Fausak
711b0cdc1f Allow hspec 2.8
https://github.com/commercialhaskell/stackage/issues/6010
2021-05-13 19:34:11 -04:00
Taylor Fausak
9ba217f449
Version 0.3.0.0 2021-05-12 10:25:24 -04:00
Taylor Fausak
306ddd5c4f
Merge pull request #22 from tfausak/trim
Pare things down
2021-05-12 10:24:57 -04:00
Taylor Fausak
b28f2920fa Remove some From instances for TryFromException 2021-05-11 08:07:51 -04:00
Taylor Fausak
74b833fffb Improve documentation 2021-05-11 08:07:51 -04:00
Taylor Fausak
a8c5fce4b6 Add tests for tryVia 2021-05-11 08:07:51 -04:00
Taylor Fausak
cdd86e9e2f Replace "cast" functions with "from" 2021-05-11 08:07:51 -04:00
Taylor Fausak
1b55654c86 Rename TryCastException to TryFromException 2021-05-11 08:07:51 -04:00
Taylor Fausak
57d0695778 Rename "tryCast" to "tryFrom" 2021-05-11 08:07:51 -04:00
Taylor Fausak
7c5e93182d Rename "cast" to "from" 2021-05-11 08:07:51 -04:00
Taylor Fausak
99d601b222 Remove identity type family 2021-05-11 08:07:51 -04:00
Taylor Fausak
8f7fb55e5a Fix test warnings 2021-05-11 08:07:51 -04:00
Taylor Fausak
1d660f8a8c Remove casting type wrapper 2021-05-11 08:07:51 -04:00
Taylor Fausak
e10349b2c4 Ignore specialization warnings 2021-05-11 08:07:51 -04:00
Taylor Fausak
39d2fcc8e8 Fix Cabal version numbers 2021-05-11 08:03:36 -04:00
Taylor Fausak
acc50894b8
Version 0.2.1.1 2021-05-01 15:29:57 -04:00
Taylor Fausak
78137e06af
Merge pull request #21 from tfausak/gh17-transitive
Improve documentation
2021-05-01 15:29:20 -04:00
Taylor Fausak
ce20a679ce Document exceptions to rules 2021-05-01 19:26:15 +00:00
Taylor Fausak
19cd609002 Add new top-level "Notes" section 2021-05-01 19:13:36 +00:00
Taylor Fausak
a700237426 Improve tryVia example 2021-05-01 19:11:56 +00:00
Taylor Fausak
2c5c9d69d6 Re-order the definition of tryVia 2021-05-01 19:10:31 +00:00
Taylor Fausak
a154c392cd Add note about maybeTryCast and eitherTryCast 2021-05-01 19:09:44 +00:00
Taylor Fausak
ba95e3ceb2 Add common usage notes 2021-05-01 19:08:48 +00:00
Taylor Fausak
34a4636c0f Put tryVia next to via 2021-05-01 19:05:34 +00:00
Taylor Fausak
263c86d4e8 Move TryCastException to data type section 2021-05-01 19:05:01 +00:00
Taylor Fausak
6f1c2e671a Add documentation to unsafe section 2021-05-01 19:04:27 +00:00
Taylor Fausak
c1c69ef332 Move sections around 2021-05-01 19:02:00 +00:00
Taylor Fausak
c71a0a7808
Improve documentation for over 2021-04-30 13:52:29 -04:00
Taylor Fausak
632c4b46e6
Version 0.2.1.0 2021-04-30 10:08:27 -04:00
Taylor Fausak
9b897d0e0e
Merge pull request #20 from tfausak/gh18-deriving-via
Add `Casting` type for deriving classes via
2021-04-30 09:00:56 -04:00
Taylor Fausak
857f052db0 Add Casting type for deriving classes via 2021-04-30 02:19:19 +00:00
Taylor Fausak
0c5112b331
Fix link to GitHub Actions 2021-04-26 08:36:19 -04:00
Taylor Fausak
0982dcb1a1
Version 0.2.0.2 2021-04-26 08:34:35 -04:00
Taylor Fausak
8c36a3621e
Fix typo 2021-04-26 08:34:05 -04:00
Taylor Fausak
9f5663e1ef
Version 0.2.0.1 2021-04-26 08:16:46 -04:00
Taylor Fausak
11fbbb9c23
Merge pull request #16 from tfausak/gh14-floating-point
Use `float2Double` instead of `realToFrac`
2021-04-26 08:16:15 -04:00
Taylor Fausak
7080fd8e9c Use float2Double instead of realToFrac
This fixes #14.
2021-04-26 08:06:54 -04:00
Taylor Fausak
733ec09b8c
Merge pull request #15 from tfausak/show-type-applications
Use type applications for showing try cast exceptions
2021-04-26 08:06:36 -04:00
Taylor Fausak
f657639797 Use type applications for showing try cast exceptions 2021-04-26 07:55:52 -04:00
Taylor Fausak
3da265dbf3 Improve documentation around try cast exceptions 2021-04-23 13:37:26 +00:00
Taylor Fausak
feb1465a4f
Version 0.2.0.0 2021-04-23 09:02:29 -04:00
Taylor Fausak
f01f6996c0 Fix formatting 2021-04-23 09:01:03 -04:00
Taylor Fausak
155493c3d7
Merge pull request #13 from tfausak/gh9-try-cast-helpers
Add helper functions for defining `tryCast`
2021-04-23 08:47:26 -04:00