universum-0.9.2: Custom prelude used in Serokell

Safe HaskellUnsafe
LanguageHaskell2010

Unsafe

Description

Unsafe functions to work with lists and Maybe. Sometimes unavoidable but better don't use them. This module is not even included in default prelude exports.

Synopsis

Documentation

unsafeHead :: [a] -> a Source #

Cautionary alias for head.

unsafeTail :: [a] -> [a] Source #

Cautionary alias for tail.

unsafeInit :: [a] -> [a] Source #

Cautionary alias for init.

unsafeLast :: [a] -> a Source #

Cautionary alias for last.

unsafeFromJust :: Maybe a -> a Source #

Cautionary alias for fromJust.

unsafeIndex :: [a] -> Int -> a Source #

Cautionary alias for !!.