protolude-0.3.4: A small prelude.

Safe Haskell | Unsafe
Language | Haskell2010

Protolude.Unsafe

# Documentation

unsafeHead :: HasCallStack => [a] -> a #

unsafeTail :: HasCallStack => [a] -> [a] #

unsafeInit :: HasCallStack => [a] -> [a] #

unsafeLast :: HasCallStack => [a] -> a #

unsafeFromJust :: HasCallStack => Maybe a -> a #

unsafeIndex :: HasCallStack => [a] -> Int -> a #

unsafeThrow :: Exception e => e -> a #

unsafeRead :: (HasCallStack, Read a) => [Char] -> a #