Copyright | (c) Sirui Lu 2021-2023 |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | siruilu@cs.washington.edu |
Stability | Experimental |
Portability | GHC only |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Synopsis
- data Union a
- ifWithLeftMost :: Bool -> SymBool -> Union a -> Union a -> Union a
- ifWithStrategy :: MergingStrategy a -> SymBool -> Union a -> Union a -> Union a
- fullReconstruct :: MergingStrategy a -> Union a -> Union a
The union data structure.
Please consider using UnionM
instead.
The default union implementation.
Instances
ifWithStrategy :: MergingStrategy a -> SymBool -> Union a -> Union a -> Union a Source #
Use a specific strategy to build a If
value.
The merged invariant will be maintained in the result.
fullReconstruct :: MergingStrategy a -> Union a -> Union a Source #
Fully reconstruct a Union
to maintain the merged invariant.