fabiommendes/elm-climbing-grades/1.1.0

NOTE: the latest version is 2.1.1

Grades.Generic

Abstracts the Bouldering vs. Climbing grades.

The grading API is provided as attributes from specially constructed records.

APIs

type alias Generic sys grade =
{ show : grade -> String
, showAs : sys -> grade -> String
, parse : String -> Maybe grade
, parseAs : sys -> String -> Maybe grade
, simplify : grade -> grade
, next : grade -> grade
, prev : grade -> grade
, to : sys -> grade -> grade
, zero : grade
, compare : grade -> grade -> Order
, toLinearScale : grade -> Float
, fromLinearScale : sys -> Float -> grade
}

Recording storing functions that implement the API for handling climbing and bouldering grades

boulder : Generic System Grade

Generic bouldering grades

climb : Generic System Grade

Generic climbing grades

Specific systems

br : Generic () Grade

Brazilian grading system

font : Generic () Grade

Fontainebleau grading system

fr : Generic () Grade

French grading system

us : Generic () Grade

Yosemite decimal grading system

vgrade : Generic () Grade

Hueco V-grades system