burrito-1.0.2.0: Parse and render URI templates.

Safe HaskellSafe
LanguageHaskell98

Burrito.Type.NonEmpty

Description

Warning: This module is not considered part of Burrito's public API. As such, it may change at any time. Use it with caution!.

Synopsis

Documentation

data NonEmpty a Source #

This simple type is used as a replacement for Data.List.NonEmpty.NonEmpty so that we can provide our own instances that are consistent across versions of GHC.

Constructors

NonEmpty 

Fields

Instances
Eq a => Eq (NonEmpty a) Source # 
Instance details

Defined in Burrito.Type.NonEmpty

Methods

(==) :: NonEmpty a -> NonEmpty a -> Bool #

(/=) :: NonEmpty a -> NonEmpty a -> Bool #

Show a => Show (NonEmpty a) Source # 
Instance details

Defined in Burrito.Type.NonEmpty

Methods

showsPrec :: Int -> NonEmpty a -> ShowS #

show :: NonEmpty a -> String #

showList :: [NonEmpty a] -> ShowS #

Lift a => Lift (NonEmpty a) Source # 
Instance details

Defined in Burrito.Type.NonEmpty

Methods

lift :: NonEmpty a -> Q Exp #

fromList :: [a] -> Maybe (NonEmpty a) Source #

Attempts to convert a regular list into a non-empty list.

singleton :: a -> NonEmpty a Source #

Creates a non-empty list with a single element.

toList :: NonEmpty a -> [a] Source #

Converts a non-empty list back into a regular list.