The 66 books of the Bible, in order, with their names, sizes and the spellings the parser accepts.
Bible.fromString "Ps 23"
|> Result.map (Bible.toStartBook >> title)
== Ok "Psalms"Every book, from Genesis to Revelation.
The book with this number, counting Genesis as 1 and Revelation as 66.
Maybe.map name (fromInt 19) == Just "Psalm"
fromInt 67 == NothingThe book's number, from 1 (Genesis) to 66 (Revelation). This is the book
part of Bible.encode.
The name used in a reference, as Bible.format writes it:
"Genesis", "1 Samuel", "Psalm".
The name used for the book as a whole, such as in a heading. This is the
same as name except for Psalms: name gives "Psalm" (as in
"Psalm 23") and title gives "Psalms".
How many chapters the book has.
Maybe.map numChapters (fromInt 19) == Just 150How many verses a chapter of the book has, or 0 if the book has no such chapter.
Maybe.map (\psalms -> numVerses psalms 119) (fromInt 19) == Just 176The lowercase spellings Bible.fromString accepts for
the book. Matching ignores case, a trailing . and extra whitespace.
Maybe.map aliases (fromInt 1) == Just [ "genesis", "gen" ]
A book of the Bible. Get one from
all,fromIntorBible.toStartBook.