Idris2Doc : Text.Html.Utils

Text.Html.Utils

(source)
Various utility functions used across the library.

Definitions

lowerFirstStr : String -> String
  Sets the first letter of the provided `String` to lower case.

Totality: total
Visibility: export
upperFirstStr : String -> String
  Sets the first letter of the provided `String` to upper case.

Totality: total
Visibility: export
replaceChar : Char -> Char -> String -> String
  Replaces all occurences of the `needle` within the `string`.

@ needle The character to replace.
@ replacement The replacement character.
@ string The string.

Totality: total
Visibility: export
replaceStr : String -> String -> String -> String
  Replaces all occurences of the `substring` within the `string`.

@ substring The substring to replace.
@ replacement The replacement string.
@ string The string.

Totality: total
Visibility: export
mapM : Monad m => (a -> (b `m`)) -> List a -> (List b `m`)
  Maps list's elements to monadic actions collecting the results.

Actions get evaluated from left to right before results are collected.

Totality: total
Visibility: public export
mapM1 : Monad m => (a -> (b `m`)) -> List1 a -> (List1 b `m`)
  Maps list's elements to monadic actions collecting the results.

Actions get evaluated from left to right before results are collected.

Totality: total
Visibility: public export
mconcatMapM : (a -> Elab ()) -> List a -> Elab ()
  Applies a function to each list's item in a sequence.

Totality: total
Visibility: export
natToStr : Nat -> String
  `show` alias.

It's needed to avoid name clashes within the compile time `IsRight` function
so error messages are properly displayed.

Totality: total
Visibility: public export