mkShowImpl : String -> List String -> Elab () Generates a `Show` instance for an enumeration data type.
The `name` argument is the name of the data type, and the `enum` argument
is the list of data constructor names with their name in lower case.
Totality: total
Visibility: exportdata Identifier : Type A CSS identifier.
Totality: total
Visibility: public export
Constructor: MkIdentifier : String -> Identifier
Hint: Show Identifier
identifier : String -> Either String Identifier Creates a valid CSS identifier.
The approach is restrictive, so such identifier is valid in Javascript.
Consequently, only the character set [A-Za-z0-9-_] is accepted.
On top of the above, an identifier cannot start with a digit nor with
an hyphen.
Also, an identifier cannot be empty.
Note that you can still create an identifier outside of the above
restrictions using the `MkIdentifier`.
Totality: total
Visibility: public exportdata Identifiers : Type A list of CSS identifiers.
Totality: total
Visibility: public export
Constructor: MkIdentifiers : List1 Identifier -> Identifiers
Hint: Show Identifiers
identifiers : String -> Either String Identifiers Creates a list of valid CSS identifiers.
See the `identifier` function for more details.
Totality: total
Visibility: public exportdata AutocompleteValue : Type- Totality: total
Visibility: public export
Constructors:
On : AutocompleteValue Off : AutocompleteValue TokenList : Identifiers -> AutocompleteValue
Hint: Show AutocompleteValue
autocompleteValue : String -> Either String AutocompleteValue- Totality: total
Visibility: public export data Base64 : Nat -> Type Base64 encoding.
Totality: total
Visibility: public export
Constructor: MkBase64 : (n : Nat) -> Vect n Char -> Base64 n
Hint: Show (Base64 n)
base64Digits : List Char -> Either String (List Char)- Totality: total
Visibility: public export base64Value' : (n : Nat) -> List Char -> Either String (Base64 n)- Totality: total
Visibility: public export base64Value : (n : Nat) -> String -> Either String (Base64 n)- Totality: total
Visibility: public export fromString : (str : String) -> {auto 0 _ : IsRight (base64Value (length str) str)} -> Base64 (length str)- Totality: total
Visibility: public export data CoordsValue : Type Coordinates to be used within the **coords** attribute.
Totality: total
Visibility: public export
Constructors:
Rect : Double -> Double -> Double -> Double -> CoordsValue Circle : Double -> Double -> Double -> CoordsValue Poly : Double -> Double -> Double -> Double -> List (Double, Double) -> CoordsValue
Hint: Show CoordsValue
data Month : Type Abbreviated symbolic month.
Totality: total
Visibility: public export
Constructors:
Jan : Month Feb : Month Mar : Month Apr : Month May : Month Jun : Month Jul : Month Aug : Month Sep : Month Oct : Month Nov : Month Dec : Month
Hints:
Eq Month Ord Month Show Month
fromMonth : Month -> Nat- Totality: total
Visibility: public export toMonth : Integer -> Maybe Month- Totality: total
Visibility: public export isLeap : Integer -> Bool Returns `True` if the year is a leap year.
Year `0` is a considered as a leap year.
Negative years follow the same rules as positive year.
For example, `-4` is a leap year, but not `-100`.
Totality: total
Visibility: public exportdaysInMonth : Integer -> Month -> Integer Number of days in the given month and year.
Totality: total
Visibility: public exportisValidDay : Integer -> Month -> Integer -> Bool Returns `True` if the day is valid for the provided year and month.
Totality: total
Visibility: public exportisValidYear : Integer -> Bool Returns `True` if the year is valid (= within the -9999 to 9999 range).
Totality: total
Visibility: public exportisValidDate : Integer -> Month -> Integer -> Bool Returns `True` if the date is valid.
Totality: total
Visibility: public exportrecord Date : Type A date in the format "yyyy-mm-dd".
Totality: total
Visibility: public export
Constructor: MkDate : (year : Integer) -> (month : Month) -> (day : Integer) -> {auto 0 _ : Holds (isValidDate year month) day} -> Date
Projections:
.day : Date -> Integer .month : Date -> Month 0 .prf : ({rec:0} : Date) -> Holds (isValidDate (year {rec:0}) (month {rec:0})) (day {rec:0}) .year : Date -> Integer
Hints:
Eq Date Ord Date Show Date
.year : Date -> Integer- Totality: total
Visibility: public export year : Date -> Integer- Totality: total
Visibility: public export .month : Date -> Month- Totality: total
Visibility: public export month : Date -> Month- Totality: total
Visibility: public export .day : Date -> Integer- Totality: total
Visibility: public export day : Date -> Integer- Totality: total
Visibility: public export 0 .prf : ({rec:0} : Date) -> Holds (isValidDate (year {rec:0}) (month {rec:0})) (day {rec:0})- Totality: total
Visibility: public export 0 prf : ({rec:0} : Date) -> Holds (isValidDate (year {rec:0}) (month {rec:0})) (day {rec:0})- Totality: total
Visibility: public export showYear : Integer -> String Shows a year in "yyyy" format.
Totality: total
Visibility: public exportshowMonth : Month -> String Shows a month in "mm" format.
Totality: total
Visibility: public exportshow2Digits : Integer -> String Shows a number on two digits.
Totality: total
Visibility: public exportmaybe_date : Integer -> Month -> Integer -> Maybe Date Returns a date or `Nothing` if the provided values are invalid.
Totality: total
Visibility: public export- Totality: total
Visibility: public export parseYear : String -> Either String Integer- Totality: total
Visibility: public export parseMonth : String -> Either String Month- Totality: total
Visibility: public export parseDay : String -> Either String Integer- Totality: total
Visibility: public export parseSep : Int -> String -> Either String String- Totality: total
Visibility: public export dateValue : String -> Either String Date Returns a date from a string.
An error is returned if the provided string isn't a valid date in
"yyyy-mm-dd" format.
Totality: total
Visibility: public exportfromString : (str : String) -> {auto 0 _ : IsRight (dateValue str)} -> Date- Totality: total
Visibility: public export record YearMonth : Type A month of a given year.
Totality: total
Visibility: public export
Constructor: MkYearMonth : (year : Integer) -> Month -> {auto 0 _ : Holds isValidYear year} -> YearMonth
Projections:
.month : YearMonth -> Month 0 .prf : ({rec:0} : YearMonth) -> Holds isValidYear (year {rec:0}) .year : YearMonth -> Integer
Hint: Show YearMonth
.year : YearMonth -> Integer- Totality: total
Visibility: public export year : YearMonth -> Integer- Totality: total
Visibility: public export .month : YearMonth -> Month- Totality: total
Visibility: public export month : YearMonth -> Month- Totality: total
Visibility: public export 0 .prf : ({rec:0} : YearMonth) -> Holds isValidYear (year {rec:0})- Totality: total
Visibility: public export 0 prf : ({rec:0} : YearMonth) -> Holds isValidYear (year {rec:0})- Totality: total
Visibility: public export maybe_yearMonth : Integer -> Month -> Maybe YearMonth Returns a year-month in "yyyy-mm" format or `Nothing`.
Totality: total
Visibility: public exportyearMonthValue : String -> Either String YearMonth- Totality: total
Visibility: public export fromString : (str : String) -> {auto 0 _ : IsRight (yearMonthValue str)} -> YearMonth- Totality: total
Visibility: public export nbWeeks : Integer -> Integer Calculates the number of ISO weeks for a given year.
The returned value can be `52` or `53` depending on the year.
Source of the algorithm: https://en.wikipedia.org/wiki/ISO_week_date
Totality: total
Visibility: public exportisValidYearWeek : Integer -> Integer -> Bool Returns `True` if the provided week is valid for the given year.
Totality: total
Visibility: public exportrecord YearWeek : Type A week of a given year.
Totality: total
Visibility: public export
Constructor: MkYearWeek : (year : Integer) -> (week : Integer) -> {auto 0 _ : Holds (isValidYearWeek year) week} -> YearWeek
Projections:
0 .prf : ({rec:0} : YearWeek) -> Holds (isValidYearWeek (year {rec:0})) (week {rec:0}) .week : YearWeek -> Integer .year : YearWeek -> Integer
Hint: Show YearWeek
.year : YearWeek -> Integer- Totality: total
Visibility: public export year : YearWeek -> Integer- Totality: total
Visibility: public export .week : YearWeek -> Integer- Totality: total
Visibility: public export week : YearWeek -> Integer- Totality: total
Visibility: public export 0 .prf : ({rec:0} : YearWeek) -> Holds (isValidYearWeek (year {rec:0})) (week {rec:0})- Totality: total
Visibility: public export 0 prf : ({rec:0} : YearWeek) -> Holds (isValidYearWeek (year {rec:0})) (week {rec:0})- Totality: total
Visibility: public export maybe_yearWeek : Integer -> Integer -> Maybe YearWeek Returns a `YearWeek` if the provided week is valid for the given year.
Otherwise, returns `Nothing`.
Totality: total
Visibility: public exportyearWeekValue : String -> Either String YearWeek- Totality: total
Visibility: public export fromString : (str : String) -> {auto 0 _ : IsRight (yearWeekValue str)} -> YearWeek- Totality: total
Visibility: public export isValidTime : Int -> Int -> Maybe Int -> Bool- Totality: total
Visibility: public export record Time : Type A time with hours, minutes and optional seconds.
Totality: total
Visibility: public export
Constructor: MkTime : (hour : Int) -> (minute : Int) -> (second : Maybe Int) -> {auto 0 _ : Holds (isValidTime hour minute) second} -> Time
Projections:
.hour : Time -> Int .minute : Time -> Int 0 .prf : ({rec:0} : Time) -> Holds (isValidTime (hour {rec:0}) (minute {rec:0})) (second {rec:0}) .second : Time -> Maybe Int
Hint: Show Time
.hour : Time -> Int- Totality: total
Visibility: public export hour : Time -> Int- Totality: total
Visibility: public export .minute : Time -> Int- Totality: total
Visibility: public export minute : Time -> Int- Totality: total
Visibility: public export .second : Time -> Maybe Int- Totality: total
Visibility: public export second : Time -> Maybe Int- Totality: total
Visibility: public export 0 .prf : ({rec:0} : Time) -> Holds (isValidTime (hour {rec:0}) (minute {rec:0})) (second {rec:0})- Totality: total
Visibility: public export 0 prf : ({rec:0} : Time) -> Holds (isValidTime (hour {rec:0}) (minute {rec:0})) (second {rec:0})- Totality: total
Visibility: public export maybe_time : Int -> Int -> Maybe Int -> Maybe Time Returns a `Time` if the hour, minute and optional second are valid.
Otherwise, returns `Nothing`.
Totality: total
Visibility: public exporttimeValue : String -> Either String Time- Totality: total
Visibility: public export fromString : (str : String) -> {auto 0 _ : IsRight (timeValue str)} -> Time- Totality: total
Visibility: public export data Datetime : Type A Datetime.
Totality: total
Visibility: public export
Constructor: MkDatetime : String -> Datetime
Hint: Show Datetime
datetimeValue : String -> Either String Datetime Naïve implementation accepting any `String` without validation.
Totality: total
Visibility: public exportfromString : String -> Datetime Naïve implementation accepting any `String` without validation.
Totality: total
Visibility: public exportrecord DocumentFragment : Type A document fragment value.
Totality: total
Visibility: public export
Constructor: MkDocumentFragment : String -> DocumentFragment
Projection: .value : DocumentFragment -> String
Hints:
FromString DocumentFragment Show DocumentFragment
.value : DocumentFragment -> String- Totality: total
Visibility: public export value : DocumentFragment -> String- Totality: total
Visibility: public export documentFragment : String -> Either String DocumentFragment Returns a document fragment or an error if the string is not valid.
To be valid, the provided string must start with '#'.
Totality: total
Visibility: public exportdata ExportpartValue : Type A single value for the **exportparts** attribute.
Totality: total
Visibility: public export
Constructors:
Value : Identifier -> ExportpartValue KeyValue : Identifier -> Identifier -> ExportpartValue
Hint: Show ExportpartValue
exportpartValue : String -> Either String ExportpartValue- Totality: total
Visibility: public export data ExportpartsValue : Type The **exportparts** attribute value.
Totality: total
Visibility: public export
Constructor: MkExportpartsValue : List1 ExportpartValue -> ExportpartsValue
Hint: Show ExportpartsValue
exportpartsValue : String -> Either String ExportpartsValue- Totality: total
Visibility: public export data Filename : Type A filename value.
Totality: total
Visibility: public export
Constructor: MkFilename : String -> Filename
Hint: Show Filename
filename : String -> Either String Filename Naïve implementation accepting any `String` as a filename.
Totality: total
Visibility: public exportfromString : String -> Filename Naïve implementation accepting any `String` as a filename.
Totality: total
Visibility: public exportformtargetValue : String -> Either String FormtargetValue- Totality: total
Visibility: public export hiddenValue : String -> Either String HiddenValue- Totality: total
Visibility: public export data IntegrityValue : Type An **integrity** attribute value.
Totality: total
Visibility: public export
Constructors:
Sha256 : Base64 44 -> IntegrityValue Sha384 : Base64 64 -> IntegrityValue Sha512 : Base64 88 -> IntegrityValue
Hint: Show IntegrityValue
integrityValue' : List Char -> Either String IntegrityValue- Totality: total
Visibility: public export integrityValue : String -> Either String IntegrityValue- Totality: total
Visibility: public export data MediaQuery : Type A media query.
Note: this is a simplification with no checks.
Totality: total
Visibility: public export
Constructor: MkMediaQuery : String -> MediaQuery
Hint: Show MediaQuery
mediaQueryValue : String -> Either String MediaQuery- Totality: total
Visibility: public export fromString : String -> MediaQuery- Totality: total
Visibility: public export data RegExp : Type A regular expression.
Note: this is a simplification with no checks.
Totality: total
Visibility: public export
Constructor: MkRegExp : String -> RegExp
Hint: Show RegExp
regExpValue : String -> Either String RegExp- Totality: total
Visibility: public export fromString : String -> RegExp- Totality: total
Visibility: public export record SizeValue : Type- Totality: total
Visibility: public export
Constructor: MkSize : Nat -> Nat -> SizeValue
Projections:
.height : SizeValue -> Nat .width : SizeValue -> Nat
Hint: Show SizeValue
.width : SizeValue -> Nat- Totality: total
Visibility: public export width : SizeValue -> Nat- Totality: total
Visibility: public export .height : SizeValue -> Nat- Totality: total
Visibility: public export height : SizeValue -> Nat- Totality: total
Visibility: public export sizeValue : String -> Either String SizeValue- Totality: total
Visibility: public export data SizesValue : Type- Totality: total
Visibility: public export
Constructors:
Any : SizesValue ListSizes : List1 SizeValue -> SizesValue
Hint: Show SizesValue
sizesValue : String -> Either String SizesValue- Totality: total
Visibility: public export record MimeTypeValue : Type- Totality: total
Visibility: public export
Constructor: MkMimeTypeValue : String -> String -> MimeTypeValue
Projections:
.content : MimeTypeValue -> String .fileType : MimeTypeValue -> String
Hint: Show MimeTypeValue
.content : MimeTypeValue -> String- Totality: total
Visibility: public export content : MimeTypeValue -> String- Totality: total
Visibility: public export .fileType : MimeTypeValue -> String- Totality: total
Visibility: public export fileType : MimeTypeValue -> String- Totality: total
Visibility: public export mimeTypeValue : String -> Either String MimeTypeValue- Totality: total
Visibility: public export data NumberingTypeValue : Type- Totality: total
Visibility: public export
Constructors:
ALower : NumberingTypeValue AUpper : NumberingTypeValue ILower : NumberingTypeValue IUpper : NumberingTypeValue One : NumberingTypeValue
Hint: Show NumberingTypeValue
numberingTypeValue : String -> Either String NumberingTypeValue- Totality: total
Visibility: public export data ScriptTypeValue : Type- Totality: total
Visibility: public export
Constructors:
Importmap : ScriptTypeValue Module : ScriptTypeValue Other : MimeTypeValue -> ScriptTypeValue
Hint: Show ScriptTypeValue
scriptTypeValue : String -> Either String ScriptTypeValue- Totality: total
Visibility: public export record Uri : Type An URI value.
Totality: total
Visibility: public export
Constructor: MkUri : String -> Uri
Projection: .value : Uri -> String
Hint: Show Uri
.value : Uri -> String- Totality: total
Visibility: public export value : Uri -> String- Totality: total
Visibility: public export uriValue : String -> Either String Uri Naïve implementation accepting any `String` without validation.
Totality: total
Visibility: public exportfromString : (str : String) -> {auto 0 _ : IsRight (uriValue str)} -> Uri- Totality: total
Visibility: public export record Url : Type An URL value.
Totality: total
Visibility: public export
Constructor: MkUrl : String -> Url
Projection: .value : Url -> String
Hint: Show Url
.value : Url -> String- Totality: total
Visibility: public export value : Url -> String- Totality: total
Visibility: public export urlValue : String -> Either String Url Naïve implementation accepting any `String` without validation.
Totality: total
Visibility: public exportfromString : (str : String) -> {auto 0 _ : IsRight (urlValue str)} -> Url- Totality: total
Visibility: public export data Urls : Type A list of URLs.
Note: this is a naïve implementation without validation.
Totality: total
Visibility: public export
Constructor: MkUrls : List1 Url -> Urls
Hint: Show Urls
urls : String -> Either String Urls Creates a list of URLs.
Totality: total
Visibility: public exportdata Urn : Type An URN value.
Totality: total
Visibility: public export
Constructor: MkUrn : String -> Urn
Hint: Show Urn
urnValue : String -> Either String Urn Naïve implementation accepting any `String` without validation.
Totality: total
Visibility: public exportfromString : (str : String) -> {auto 0 _ : IsRight (urnValue str)} -> Urn- Totality: total
Visibility: public export data PartialUrl : Type A partial URL value starting with `#`.
Totality: total
Visibility: public export
Constructor: MkPartialUrl : String -> PartialUrl
Hint: Show PartialUrl
partialUrl : String -> Either String PartialUrl Naïve implementation accepting any `String` starting with `#`.
Totality: total
Visibility: public exportdata ItemidValue : Type An **itemvalue** attribute value.
Totality: total
Visibility: public export
Constructors:
UrlValue : Url -> ItemidValue UrnValue : Urn -> ItemidValue
Hint: Show ItemidValue
itemidValue : String -> Either String ItemidValue Naïve implementation accepting any string and always returning an URL.
Totality: total
Visibility: public exportdata SrcdocValue : Type This is a naïve implementation without any checks.
Totality: total
Visibility: public export
Constructor: MkSrcdocValue : String -> SrcdocValue
Hint: Show SrcdocValue
fromString : String -> SrcdocValue- Totality: total
Visibility: public export data TabindexValue : Type The **tabindex** attribute value.
Totality: total
Visibility: public export
Constructors:
MinusOne : TabindexValue Zero : TabindexValue
Hint: Show TabindexValue
tabindexValue : String -> Either String TabindexValue Builds a **tabindex** attribute value from a `String`.
Only `-1` or `0` are accepted as per [MDN recommendations][1].
[1]: https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/tabindex
Totality: total
Visibility: public exportdata CssValue : Type A CSS styling declaration value for the **style** attribute.
This is a naïve implementation without any checks.
Totality: total
Visibility: public export
Constructor: MkCssValue : String -> CssValue
Hint: Show CssValue
fromString : String -> CssValue- Totality: total
Visibility: public export data Href : Type A value accepted by the **href** attribute.
Currently accepted values are:
- An URL
- A document fragment
Totality: total
Visibility: public export
Constructors:
HrefUrl : Url -> Href HrefDocumentFragment : DocumentFragment -> Href
Hint: Show Href
hrefValue : String -> Either String Href Returns a **href** value or an error if the provided string isn't valid.
To be valid, the string must be a valid document fragment or a valid URL.
> [!WARNING]
> No checks are currently implemented for URLs.
Totality: total
Visibility: public exportfromString : (value : String) -> IsRight (hrefValue value) => Href- Totality: total
Visibility: public export record FileTypes : Type List of values for an **accept** attribute.
Totality: total
Visibility: public export
Constructor: MkFileTypes : List1 String -> FileTypes
Projection: .values : FileTypes -> List1 String
Hint: FromString FileTypes
.values : FileTypes -> List1 String- Totality: total
Visibility: public export values : FileTypes -> List1 String- Totality: total
Visibility: public export record Key : Type A single printable character.
Totality: total
Visibility: public export
Constructor: MkKey : Char -> Key
Projection: .char : Key -> Char
.char : Key -> Char- Totality: total
Visibility: public export char : Key -> Char- Totality: total
Visibility: public export data NonWhitespace : Type A non-empty string not only formed by white space characters.
Totality: total
Visibility: public export
Constructor: MkNonWhitespace : String -> NonWhitespace
Hint: Show NonWhitespace
nonWhiteSpace : String -> Either String NonWhitespace- Totality: total
Visibility: public export fromString : (value : String) -> {auto 0 _ : IsRight (nonWhiteSpace value)} -> NonWhitespace- Totality: total
Visibility: public export record LanguageTag : Type A BCP 47 language tag.
Totality: total
Visibility: public export
Constructor: MkLanguageTag : String -> Maybe String -> Maybe String -> LanguageTag
Projections:
.language : LanguageTag -> String .region : LanguageTag -> Maybe String .script : LanguageTag -> Maybe String
Hint: Show LanguageTag
.language : LanguageTag -> String- Totality: total
Visibility: public export language : LanguageTag -> String- Totality: total
Visibility: public export .script : LanguageTag -> Maybe String- Totality: total
Visibility: public export script : LanguageTag -> Maybe String- Totality: total
Visibility: public export .region : LanguageTag -> Maybe String- Totality: total
Visibility: public export region : LanguageTag -> Maybe String- Totality: total
Visibility: public export splitList : (a -> Bool) -> List a -> List (List a) Re-implement split for `List` to return a `List` rather than a `List1`
This is necessary to avoid name clashes between `List` and `List1`.
Totality: total
Visibility: public exportsplitStr : (Char -> Bool) -> String -> List String Re-implement split for `String` to return a `List` rather than a `List1`
This is necessary to avoid name clashes between `List` and `List1`.
Totality: total
Visibility: public exportbcpValue : String -> Either String LanguageTag Check a BCP 47 language tag value.
At the moment, it only ensures that the provided string has the correct
number of parts (1, 2 or 3, separated by a '-').
Totality: total
Visibility: public exportfromString : (str : String) -> {auto 0 _ : IsRight (bcpValue str)} -> LanguageTag- Totality: total
Visibility: public export data Descriptor : Type- Totality: total
Visibility: public export
Constructors:
Width : Nat -> Descriptor Density : Double -> Descriptor
Hint: Show Descriptor
descriptorValue : String -> Either String Descriptor- Totality: total
Visibility: public export record SrcsetValue : Type A srcset value.
Totality: total
Visibility: public export
Constructor: MkSrcset : Url -> Maybe Descriptor -> SrcsetValue
Projections:
.descriptor : SrcsetValue -> Maybe Descriptor .url : SrcsetValue -> Url
Hint: Show SrcsetValue
.url : SrcsetValue -> Url- Totality: total
Visibility: public export url : SrcsetValue -> Url- Totality: total
Visibility: public export .descriptor : SrcsetValue -> Maybe Descriptor- Totality: total
Visibility: public export descriptor : SrcsetValue -> Maybe Descriptor- Totality: total
Visibility: public export srcsetValue : String -> Either String SrcsetValue- Totality: total
Visibility: public export srcsetValues : String -> Either String (List1 SrcsetValue)- Totality: total
Visibility: public export fromString : (str : String) -> {auto 0 _ : IsRight (srcsetValues str)} -> List1 SrcsetValue- Totality: total
Visibility: public export toString : List1 SrcsetValue -> String- Totality: total
Visibility: public export data TargetValue : Type- Totality: total
Visibility: public export
Constructors:
Self : TargetValue Parent : TargetValue Top : TargetValue Blank : TargetValue XmlName : String -> TargetValue
Hint: Show TargetValue
targetValue : String -> Either String TargetValue- Totality: total
Visibility: public export PositiveDouble : Double -> Bool- Totality: total
Visibility: public export record PositiveFloat : Type A positive float number
Totality: total
Visibility: public export
Constructor: MkPositiveFloat : (value : Double) -> {auto 0 _ : Holds PositiveDouble value} -> PositiveFloat
Projections:
0 .prf : ({rec:0} : PositiveFloat) -> Holds PositiveDouble (value {rec:0}) .value : PositiveFloat -> Double
Hints:
Num PositiveFloat Show PositiveFloat
.value : PositiveFloat -> Double- Totality: total
Visibility: public export value : PositiveFloat -> Double- Totality: total
Visibility: public export 0 .prf : ({rec:0} : PositiveFloat) -> Holds PositiveDouble (value {rec:0})- Totality: total
Visibility: public export 0 prf : ({rec:0} : PositiveFloat) -> Holds PositiveDouble (value {rec:0})- Totality: total
Visibility: public export maybe_positiveFloat : Double -> Maybe PositiveFloat Returns a positive value if the provided float is greater than `0`.
Totality: total
Visibility: public exportpositiveFloatValue : Double -> Either String PositiveFloat- Totality: total
Visibility: public export fromDouble : (x : Double) -> {auto 0 _ : IsRight (positiveFloatValue x)} -> PositiveFloat- Totality: total
Visibility: public export record Positive : Type A positive number
Totality: total
Visibility: public export
Constructor: MkPositive : (value : Integer) -> {auto 0 _ : GreaterThan 0 value} -> Positive
Projections:
0 .prf : ({rec:0} : Positive) -> GreaterThan 0 (value {rec:0}) .value : Positive -> Integer
Hint: Show Positive
.value : Positive -> Integer- Totality: total
Visibility: public export value : Positive -> Integer- Totality: total
Visibility: public export 0 .prf : ({rec:0} : Positive) -> GreaterThan 0 (value {rec:0})- Totality: total
Visibility: public export 0 prf : ({rec:0} : Positive) -> GreaterThan 0 (value {rec:0})- Totality: total
Visibility: public export maybe_positive : Integer -> Maybe Positive Returns a positive value if the provided integer is greater than `0`.
Totality: total
Visibility: public exportpositiveValue : Integer -> Either String Positive- Totality: total
Visibility: public export fromInteger : (x : Integer) -> {auto 0 _ : IsRight (positiveValue x)} -> Positive- Totality: total
Visibility: public export