Popularity
4.6
Growing
Activity
0.0
Stable
6
4
0
Monthly Downloads: 48
Programming language: Haskell
License: GNU General Public License v3.0 or later
Tags:
Development
Record
record-hasfield alternatives and similar packages
Based on the "record" category.
Alternatively, view record-hasfield alternatives based on common mentions on social networks and blogs.
-
record-dot-preprocessor
A preprocessor for a Haskell record syntax using dot
Do you think we are missing an alternative of record-hasfield or a related project?
README
record-hasfield

This package provides a version of "GHC.Records" as it will be after the implementation of GHC proposal #42, which reads:
-- | Constraint representing the fact that the field @[email protected] can be get and set on
-- the record type @[email protected] and has field type @[email protected]
class HasField x r a | x r -> a where
-- | Function to get and set a field in a record.
hasField :: r -> (a -> r, a)
In GHC these will be magically solved, but this package doesn't provide that. This package does provide extra helper functions for working with the HasField
type class.