#Library Index
#args
A command-line argument parser.
ArityVisibilityUnknownTrailingFlagSpecArgSpecArgsswitchvaluevalueListoneOfintValueinternalspecwithTrailingwithUnknownwithStrictDashcanonicalrosterOfunknownFlagMessagemissingValueMessageinvalidValueMessagehelpBlockOfflagLabelusageExitCodeparseArgsflagflagValuelastValueflagValues
#array
Operations on Array a.
singletonmakemakeWithfromListrangecopygetfirstlastreversesliceClampedtakedropconcatzipzipWithunzipsetInPlaceswapfillblitsortInPlaceBysortInPlacesortBysortsortOnfindfindIndexfoldWithIndexforEachWithIndexmapWithIndex
#async
WaitAsyncTaskliftIOyieldsleepspawnspawnTaskawaitAnywaitReadwaitWritewaitFlagdeadlineAfterexpiredawaitconcurrentrunAsyncrunAsyncMain
#base32
Base32 encoding and decoding, per RFC 4648.
#base64
Base64 encoding and decoding, per RFC 4648.
#bytebuilder
A buffer for building byte arrays.
BuildernewBuilderbuildArraybuildBytesemitU8emitBytesbuilderPartsemitU16BEemitU24BEemitU32BEemitU64BEemitU16LEemitU24LEemitU32LEemitU64LEemitBeSintemitBeUintemitLeSintemitLeUint
#byteparser
Parser combinators over Bytes.
BResultByteParserEByteParserrunBPonOknoMatchorElsefailWithsatisfyanyBytebyteeofpeekmanysomesepBy1sepByoptionalbetweenchoicechainl1takeBytesbeUintbeSintbeFloat64leUintleSintleFloat64beU16beU32beU64leU16leU32leU64runByteParserrunByteParserWithin
#bytes
An immutable string of bytes.
BytesfromArrayfromArrayAssumeByteDomaintoArrayfromU8ArraytoU8ArraylengthisEmptygetsliceClampedtakedropsplitAtelemIndexelemIndexWithinindexOfWithinindexOflastIndexOfcontainsstartsWithendsWithfoldforEachanyallmapconcatencodeUtf8decodeUtf8decodeUtf8LossywriteStdoutBytesfromByteBlockPrefixadoptByteBlockUnsafelendByteBlockUnsafe
#core
The prelude: the types, interfaces, and functions every Medaka program can use without an import.
OrderingOptionResultSocketListenSocketEqneqSemigroupMonoidOrdclampDebugDisplayHashableprintlnprintNumisEvenisOddcheckedAddcheckedSubcheckedMulBoundedMappablemapConstApplicativemap2map3ThenableflatMapflatwhenunlessDeferredMappableDeferredApplicativeDeferredThenabledeferFlatMapdeferWhendeferUnlessfoldThenrepeatThenfilterThenforEachrunEachAlternativeguardBimappableFoldableFilterableFromEntriesIndexIndexMutSliceTraversableanyallfindcountsumproductelemnotElemmaximumminimumotherwisenotandorxorisSomeisNoneoptionOroptionOrPanicoptiontoResultfromResultisOkisErrresultOrresultOrPanicresultmapErridentityfstsndconstfliponcurryuncurrydiscardcomposepipeapplyArbitraryarbitraryStringarbitraryListRepRFieldGeneric
#crypto.hmac
HMAC-SHA-256 (RFC 2104) over byte strings.
#crypto.sha256
SHA-256 hashing of a byte string (FIPS 180-4).
#fs
Filesystem helpers built on the host file primitives.
FileStatstatisDirisFilefileSizecopyFilereplaceDurablymkdirAllmkdirAllDurablywalkDirfixtureFilesfixtureDirsexpectUnitCount
#hash_map
A mutable hash table from keys to values.
HashMapnewfromListsizeisEmptygethasfindWithDefaultsetInPlacedeleteInPlaceentrieskeysvalues
#hash_set
A mutable set of distinct elements, keyed by hash.
#hex
Hexadecimal encoding and decoding.
#http
HTTP/1.1 message framing: request parsing, response building, and response parsing, over bytes the caller supplies.
maxHttpRequestBytesmaxHttpHeaderBytesmaxHttpBodyBytesmaxHttpRequestLineBytesmaxHttpResponseStatusLineBytesmaxHttpResponseChunkBytesmaxHttpHeaderFieldsmaxHttpTrailerFieldsmaxHttpChunksmaxJsonBodyBytesmaxTextBodyBytesmaxRawBodyBytescheckHttpRequestBytescheckHttpHeaderBytescheckHttpBodyBytescheckHttpRequestLineBytescheckHttpResponseStatusLineBytescheckHttpResponseChunkBytescheckHttpHeaderFieldscheckHttpTrailerFieldscheckHttpChunkscheckJsonBodyBytescheckTextBodyBytescheckRawBodyBytesHeaderRequestHttpParseFailurehttpParseFailureMessageheaderNameheaderValuerequestMethodrequestTargetrequestHeadersrequestTrailersrequestBodyrequestBodyLengthrequestKeepAliveisTokenBytefindBytetrimLeftOwstrimRightOwsparseFieldshexDigitskipOwsparseChunkedparseRequestClassifiedHttpFrameHttpScanhttpScanStarthttpScanInHeadershttpScanBodyRemainingscanRequestBoundaryWithinscanRequestBoundaryFromscanRequestBoundaryparseRequestAtparseRequestParsedResponseparsedResponseStatusparsedResponseReasonparsedResponseHeadersparsedResponseTrailersparsedResponseBodyparsedResponseBodyLengthparseResponseClassifiedparseResponseresponseBoundaryWithinresponseBoundaryResponsemakeHeadermakeResponseresponseStatusresponseHeadersresponseBodyresponseReasonserializeResponseMediaTypeDecodedBodyQueryParamparseTargetQuerymediaTypeTypemediaTypeSubtypeparseMediaTypedecodeRequestBody
#i32
Signed 32-bit integers, the I32 type.
tryFromInttruncatetoIntfromU8fromU16truncateI64fromBitstoBitsbitAndbitOrbitXorbitNotshiftLeftshiftRight
#i64
Signed 64-bit integers, the I64 type.
toIntfromU8fromU16fromU32fromI32fromBitstoBitsbitAndbitOrbitXorbitNotshiftLeftshiftRight
#io
Output to standard error, debug printing, and helpers for files and the environment.
eprinteprintlninspectreadLinesownerOnlyModeisPrivateModewriteFilePrivaterunCommandOkrunVerbgetEnvOr
#json
A JSON value type with a parser and a serializer.
#list
Operations on List a.
FilterablefilterfilterMapsingletonrangerangeStepreplicateiterateunfoldheadtailunconslastinitgetreverseintersperseintercalatetransposesubsequencespermutationsscanLeftscanRightreducemaximumByminimumByfindIndexfindIndiceselemIndexelemIndiceslookupfindMapmapWithIndexindexedmapAccumLmapAccumRinsertAtupdateAtremoveAttakedroptakeWhiledropWhilespanbreaksplitAtsliceClampedchunksdropWhileEndtakeWhileEndsplitstartsWithendsWithcontainsSubsortBysortsortOnnubBynubdeleteBydeletegroupBygrouppartitionsomesokserrspartitionResultstallyzipzip3zipWithzip4zipWith3unzipunzip3
#map
An immutable map from keys to values, ordered by key.
MapsingletonfromListsizeisEmptygethasfindWithDefaultsetinsertWithadjustdeleteminViewmaxViewgetMingetMaxdeleteMindeleteMaxfoldrWithKeyfoldlWithKeyentriesentriesFromkeysvaluesmapWithKeyfilterWithKeyunionunionWithdifferenceintersectionWithintersectionwellFormed
#math
Floating-point math and a few integer helpers.
toRadianstoDegreesisNaNisInfiniteisFinitelerpapproxEqlogBasefloorDivfloorModgcdlcmpowInt
#mut_bytes
A mutable string of bytes, fixed at its allocated length.
#net
TCP connections and name resolution.
ConnectionListenerShutdownresolveconnectlistenlistenPortacceptsendrecvsendAllrecvAllsendStringrecvStringsendLinerecvLineshutdownclosecloseListenersetTimeoutwithConnectionwithListenerserveLoop
#net_async
connectconnectWithinacceptrecvrecvWithinsendsendAllsendAllWithinsendStringclosecloseListenerserve
#nonempty
A list with at least one element.
#path
Manipulation of /-separated paths as text.
dirnamebasenameextnamestemhasExtensionwithExtensionjoinPathjoinAllsegmentsisAbsolutestripPrefixnormalize
#regex
Regular expressions, matched in linear time.
RegexRegexErrorGroupMatchcompilemustCompilesourceescapeisMatchisFullMatchfindfindFromfullMatchfindAllisFullMatchBytesfindBytesreplacereplaceAllreplaceAllWithsplit
#runtime
The host primitives.
putStrputStrLnePutStrePutStrLnflushStdoutreadLinereadLineOptreadAllreadExactlyRefreadFilereadFileByteswriteFilewriteFileByteswriteFileModeappendFilefileExistsfileModecanonicalizePathlistDirmakeDirremoveFilerenamefsyncremoveDirstatFileargsgetEnvexecutablePathrunCommandexitpanicnetResolvenetTcpConnectnetTcpListennetListenPortnetTcpAcceptnetSendnetSendFromnetRecvnetShutdownnetClosenetCloseListenernetSetTimeoutsocketFdlistenSocketFdpdsSignalStartpdsSignalRequestedioPollnetSetNonblocknetSetNonblockListenernetTryAcceptnetConnectStartnetConnectChecknetTryRecvnetTryRecvBytesnetTrySendnetTrySendFromnetSendBytesFromnetTrySendBytesFromwallTimeSecmonotonicSecsleepMsallocBytesrandomIntrandomBoolrandomFloatrandomCharsetSeedosEntropyByteshashInthashFloathashStringhashCharhashBoolpieintMinBoundintMaxBoundcharMinBoundcharMaxBoundintToFloatfloatToIntfloatRembitAndbitOrbitXorshiftLeftshiftRightbitNotsqrtcbrtexploglog2log10sincostanasinacosatansinhcoshtanhfloorceilroundtruncpowatan2hypotintBitsToFloatfloatToBytes64intToStringfloatToStringarrayLengtharrayMakearrayMakeWitharrayCopyarrayFromListbyteBlockLengthbyteBlockToIntArraybyteBlockFromStringstringToCharsstringFromCharsstringToUtf8BytesstringFromUtf8BytescharToStrcharCodecharFromCodestringLengthstringSlicestringConcatstringIndexOfstringComparestringToFloatcharIsAlphacharIsSpacecharIsUppercharIsLowercharIsPunctcharToUppercharToLowerstringToUpperstringToLower
#set
An immutable set of distinct elements, ordered by Ord.
SetsingletonfromListsizehasinsertdeleteminViewmaxViewgetMingetMaxdeleteMindeleteMaxunionintersectiondifferenceisSubsetOfwellFormed
#string
Operations on String and Char.
isDigitisAlphaisAlphaNumisSpaceisUpperisLowerisPunctfromDigittoDigitfromChartoCharsfromCharstoUtf8fromUtf8utf8ByteLengthtoInttoFloatstartsWithendsWithstripPrefixstripSuffixcontainsindexOflastIndexOfcountOccurrencesprependconcatjoinrepeatreversetrimLefttrimRighttrimtoUppertoLowercapitalizereplacereplaceAllsliceClampedtakedropsplitAtsplitlinesstripCRwordsunlinesunwordspadLeftpadRightcenter
#test
Assertions for unit tests.
ExpectationpassfailexpectTrueexpectFalseexpectSatisfiesexpectEqualexpectNotEqualexpectLessThanexpectGreaterThanexpectAtLeastexpectAtMostexpectOkexpectErrexpectErrContainsexpectOkThenexpectSomeexpectNoneexpectWithinexpectTextContainsAllexpectLineContainsAllexpectTextStartsWithAndContainsexpectEqualTextexpectEqualLinesexpectAlllabelFailexpectEachexpectNoFindingsexpectFindingsexpectationTagexpectationMessageexpectationExpectedexpectationActualrunTestsexpectGolden
#test_process
Assertions for a test that runs a program.
medakaRootunderRootmedakaBinspawnTimeoutSecondsboundedVerbboundedVerbSecondsscratchDirexpectSpawnOkexpectSpawnFailsexpectSpawnFailsAllexpectSpawnOkLinetestFileStemtestAssertionCountunrosteredUnitsmissingUnitsunrosteredTestFilesmissingTestFilesungradedRosterRowsdisagreeingFloorBlocks
#time
Durations, a UTC calendar, and the clock.
DurationmillissecondsminuteshoursdaystoMillistoSecondstoMinutestoHourstoDaysaddDurationsubDurationDateTimefromEpochSecondstoEpochSecondsformatIsoparseIsonownowDateTimemonotonicelapsedSincesleep
#toml
A reader for a subset of TOML.
#u16
Unsigned 16-bit integers, the U16 type.
tryFromInttruncatetoIntfromU8truncateU32truncateU64bitAndbitOrbitXorbitNotshiftLeftshiftRightrotateLeftrotateRightpopCountleadingZerostrailingZerostoBytesBEtoBytesLEfromBytesBEfromBytesLEtoHex
#u32
Unsigned 32-bit integers, the U32 type.
tryFromInttruncatetoIntfromU8fromU16truncateU64mulWidebitAndbitOrbitXorbitNotshiftLeftshiftRightrotateLeftrotateRightpopCountleadingZerostrailingZerostoBytesBEtoBytesLEfromBytesBEfromBytesLEtoHex
#u64
Unsigned 64-bit integers, the U64 type.
tryFromInttruncatetoInttoIntTruncatingfromU8fromU16fromU32bitAndbitOrbitXorbitNotshiftLeftshiftRightrotateLeftrotateRightpopCountleadingZerostrailingZerosmulWideaddCarrysubBorrowtoBytesBEtoBytesLEfromBytesBEfromBytesLEtoHex
#u8
Unsigned 8-bit integers, the U8 type.
tryFromInttruncatetoInttruncateU16truncateU32truncateU64bitAndbitOrbitXorbitNotshiftLeftshiftRightrotateLeftrotateRightpopCountleadingZerostrailingZerostoHex
#validation
A result type that collects every error instead of stopping at the first.
#vector
A growable, mutable array.