| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Imj.Util
- showListOrSingleton :: Show a => [a] -> Text
- replicateElements :: Int -> [a] -> [a]
- range :: Enum a => Ord a => a -> a -> [a]
- commonPrefix :: String -> String -> String
- commonSuffix :: String -> String -> String
- randomRsIO :: Random a => a -> a -> IO [a]
- clamp :: Ord a => a -> a -> a -> a
- data Int64 :: *
List utilities
showListOrSingleton :: Show a => [a] -> Text Source #
If list is a singleton, show the element, else show the list.
replicateElements :: Int -> [a] -> [a] Source #
Replicates each list element n times and concatenates the result.
Builds a range with no constraint on the order of bounds:
range 3 5 == [3,4,5] range 5 3 == [5,4,3]
String utilities
Math utilities
Returns a list of random values uniformly distributed in the closed interval [lo,hi].
It is unspecified what happens if lo>hi
Arguments
| :: Ord a | |
| => a | The value |
| -> a | The inclusive minimum bound |
| -> a | The inclusive maximum bound |
| -> a |
Expects the bounds to be in the right order.
Reexports
64-bit signed integer type
Instances
| Bounded Int64 | Since: 2.1 |
| Enum Int64 | Since: 2.1 |
| Eq Int64 | Since: 2.1 |
| Integral Int64 | Since: 2.1 |
| Data Int64 | Since: 4.0.0.0 |
| Num Int64 | Since: 2.1 |
| Ord Int64 | Since: 2.1 |
| Read Int64 | Since: 2.1 |
| Real Int64 | Since: 2.1 |
| Show Int64 | Since: 2.1 |
| Ix Int64 | Since: 2.1 |
| Bits Int64 | Since: 2.1 |
| FiniteBits Int64 | Since: 4.6.0.0 |
| Prim Int64 | |
| Random Int64 | |
| Unbox Int64 | |
| Vector Vector Int64 | |
| MVector MVector Int64 | |
| data Vector Int64 | |
| data MVector s Int64 | |