-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix documentation for instances involving Void (#147)
* remove Emacs auto-save file * fix documentation for instances involving Void * link to uncluttering note
- Loading branch information
Showing
17 changed files
with
70 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
{-# LANGUAGE PolyKinds #-} | ||
module Data.Generics.Internal.Void where | ||
module Data.Generics.Internal.Void | ||
( -- $note | ||
Void | ||
, Void1 | ||
, Void2 | ||
) where | ||
|
||
{- | ||
Note [Uncluttering type signatures] | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
-- | ||
-- $note | ||
-- = Uncluttering type signatures | ||
-- | ||
-- Because the various instances in the library always match (the Has* classes | ||
-- are essentially glorified constraint synonyms), they get replaced with | ||
-- their constraints, resulting in large, unreadable types. | ||
-- | ||
-- Writing an (overlapping instance) for this Void type means that the original | ||
-- instance might not be the one selected, thus GHC leaves the constraints in | ||
-- place until further information is provided, at which point the type | ||
-- machinery has sufficient information to reduce to sensible types. | ||
|
||
Because the various instances in the library always match (the Has* classes | ||
are essentially glorified constraint synonyms), they get replaced with | ||
their constraints, resulting in large, unreadable types. | ||
Writing an (overlapping instance) for this Void type means that the original | ||
instance might not be the one selected, thus GHC leaves the constraints in | ||
place until further information is provided, at which point the type | ||
machinery has sufficient information to reduce to sensible types. | ||
-} | ||
data Void | ||
data Void1 a | ||
data Void2 a b |
154 changes: 0 additions & 154 deletions
154
generic-lens-core/src/Data/Generics/Product/#Positions.hs#
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.