uniplate-1.2.0.1: Uniform type generic traversals.

Data.Generics.Str

Contents

Description

This module provides the Str data type, which is used by the underlying uniplate and biplate methods. It should not be used directly under ordinary circumstances.

Synopsis

The Data Type

data Str a Source

Constructors

Zero 
One a 
Two (Str a) (Str a) 

Instances

strType :: Str a -> aSource

Take the type of the method, will crash if called

strList :: Str a -> [a]Source

Convert a Str to a list, assumes the value was created with listStr

listStr :: [a] -> Str aSource

Convert a list to a Str

strStructure :: Str a -> ([a], [a] -> Str a)Source

Transform a Str to a list, and back again, in a structure preserving way. The output and input lists must be equal in length.