Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file batteries.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196(* open this to extend all Foo with BatFoo *)moduleLegacy=struct##V<5##includePervasives##V>=5##includeStdlibmoduleArg=ArgmoduleArray=ArraymoduleArrayLabels=ArrayLabelsmoduleBuffer=BuffermoduleBytes=BytesmoduleCallback=CallbackmoduleChar=CharmoduleComplex=ComplexmoduleDigest=Digest##V>=4.12##moduleEither=EithermoduleFilename=FilenamemoduleFormat=FormatmoduleGc=GcmoduleGenlex=GenlexmoduleHashtbl=HashtblmoduleInt32=Int32moduleInt64=Int64moduleLazy=LazymoduleLexing=LexingmoduleList=ListmoduleListLabels=ListLabelsmoduleMap=MapmoduleMarshal=MarshalmoduleMoreLabels=MoreLabelsmoduleNativeint=NativeintmoduleOo=OomoduleParsing=ParsingmodulePrintexc=PrintexcmodulePrintf=PrintfmoduleQueue=QueuemoduleRandom=RandommoduleScanf=ScanfmoduleSet=Set##V>=4.7##moduleSeq=Seq##V<4.8##moduleSort=SortmoduleStack=StackmoduleStdLabels =StdLabelsmoduleStream=StreammoduleString=StringmoduleStringLabels=StringLabelsmoduleSys=SysmoduleWeak=Weakmodule Unix=UnixmoduleNum=NummoduleBig_int=Big_intmoduleBigarray=BigarraymoduleStr=Str##V>=4.8##moduleResult=Resultend(* stdlib modules *)(* Arg *)moduleArray=BatArray(* ArrayLabels *)moduleBuffer=BatBuffermoduleBytes=BatBytes(* this type is a compiler builtin in OCaml V>=4.2,
and declared by BatBytes as equal to 'string' below;
this alias declaration makes the unqualified 'bytes' usable
by users V<=4.2, otherwise they can only use (Bat)Bytes.t
*)typebytes=Bytes.t(* Callback *)moduleChar=BatCharmodule Complex=BatComplexmoduleDigest=BatDigestmoduleEither=BatEither(* Filename *)moduleFormat=BatFormatmoduleGc=BatGcmoduleGenlex=BatGenlexmodule Hashtbl=BatHashtblmoduleInt32=BatInt32moduleInt64=BatInt64(* Lazy *)moduleLexing=BatLexingmoduleList=BatList(* ListLabels *)moduleMap=BatMapmodule Marshal=BatMarshal(* MoreLabels *)moduleNativeint=BatNativeint(* Parsing *)modulePrintexc=BatPrintexcmodulePrintf=BatPrintf(* UNTESTED FOR BACKWARDS COMPATIBILITY *)moduleQueue=BatQueuemoduleRandom=BatRandommoduleScanf=BatScanfmoduleSet=BatSet(* Sort - Deprecated *)moduleStack=BatStackmoduleStream=BatStreammoduleString=BatString(* StringLabels *)moduleSys=BatSys(* Weak *)moduleUnix=BatUnix(*module Str = struct include Str include BatStr end*)moduleBig_int=BatBig_intmoduleNum=BatNummodule Bigarray=BatBigarray(* Extlib modules not replacing stdlib *)moduleBase64=BatBase64moduleBitSet=BatBitSetmoduleBit_set=BatBitSetmoduleDllist=BatDllistmodule DynArray=BatDynArraymoduleEnum=BatEnummoduleFile=BatFilemoduleGlobal=BatGlobalmoduleIO=BatIOmodule LazyList=BatLazyListmoduleMultiPMap=BatMultiPMapmoduleOption=BatOption(* REMOVED, Extlib only module OptParse = BatOptParse *)moduleRefList=BatRefListmoduleRef=BatRef(*module Std = REMOVED - use BatPervasives *)(* Batteries specific modules *)moduleCache=BatCachemoduleCharParser=BatCharParsermoduleDeque=BatDequemoduleHashcons=BatHashconsmoduleHeap=BatHeapmoduleFingerTree=BatFingerTreemoduleLogger=BatLoggermodule MultiMap=BatMultiMapmodule ParserCo=BatParserComoduleResult=BatResultmoduleReturn=BatReturnmoduleSeq=BatSeqmoduleSubstring=BatSubstringmoduleTuple=BatTuplemoduleTuple2=BatTuple.Tuple2moduleTuple3=BatTuple.Tuple3moduleTuple4=BatTuple.Tuple4moduleTuple5=BatTuple.Tuple5moduleVect=BatVectmoduleISet=BatISetmoduleIMap=BatIMapmoduleSplay=BatSplaymoduleUref=BatUrefmoduleUChar=BatUCharmoduleUTF8=BatUTF8moduleText=BatTextmoduleConcurrent=BatConcurrent(* Batteries Specific *)moduleInterfaces=BatInterfacesmoduleNumber=BatNumbermoduleFloat=BatFloatmoduleInt=BatIntmoduleBool=BatBoolmoduleUnit=BatUnit(*module Int63 = BatInt63*)moduleFilename=BatFilename(* Modules in-progress, API stability not guaranteed *)moduleIncubator=structmoduleLog=BatLogmodule Bounded=BatBoundedmodule PathGen=BatPathGenend(* Pervasives last *)##V<4.3##includePervasives##V<5####V>=4.3##include(Pervasives:##V<5####V>=4.3##moduletypeofPervasives##V<5####V>=4.3##withtype('a,'b)result:=('a,'b)Pervasives.result##V<5####V>=4.3##andtype'aref='aPervasives.ref##V<5####V>=4.3##andtypefpclass=Pervasives.fpclass##V<5####V>=4.3##andtypein_channel=Pervasives.in_channel##V<5####V>=4.3##andtypeout_channel =Pervasives.out_channel##V<5####V>=4.3##andtypeopen_flag=Pervasives.open_flag##V<5####V>=4.3##andtype('a,'b,'c,'d,'e,'f)format6=##V<5####V>=4.3##('a,'b,'c,'d,'e,'f)Pervasives.format6##V<5####V>=4.3##andtype('a,'b,'c,'d)format4=##V<5####V>=4.3##('a,'b,'c,'d)Pervasives.format4##V<5####V>=4.3##andtype('a,'b,'c)format=##V<5####V>=4.3##('a,'b,'c)Pervasives.format##V<5####V>=4.3##)includeBatPervasives