| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| codesnippets:octets [2021/04/22 13:00] – f2b216 | codesnippets:octets [2025/10/08 00:48] (current) – external edit 127.0.0.1 |
|---|
| ====== Octets ====== | ====== Octets ====== |
| ~~DISCUSSION~~ | |
| |
| * type ''class'' ''Octetable'' | * type ''class'' ''Octetable'' |
| * with type ''Octets'' | * with type ''Octet'', and ''Octets'' |
| * with instances for ''Word32'', ''Char'', ''Utf8Char'', ''Integer'', and ''Int'' | * with instances for ''Word32'', ''Char'', ''Utf8Char'', ''Integer'', and ''Int'' |
| * as an example | * example |
| * with test execution | |
| * code, of module ''Octetable'':<code Haskell> | * code, of module ''Octetable'':<code Haskell> |
| {-# LANGUAGE BinaryLiterals #-} | {-# LANGUAGE BinaryLiterals #-} |
| -2299819935653645082894452792461391785316838819634854499582649773064497657338657176722815066047012042970707985364005424194851744592589349276289737892620644753316103773332601282923749730891215409124729751179101572661546264659399035941959433049031612193674931427369793499974748103941854396793949658196683481215335075331190973321382630193047486040570710476538476805752828595396636100262237982462365668148474400831819729686520016831142034423035989126884829798702369001522511603033547628403647714677841344568950917375570064143430404597420770773439867113060747581916408770350655859231601822693794335340024703291277047383009545489812044665828872069515086161470043404212964143599392663515383545253369964683097804303493196001346972875807092655666775774755153966987089557598493216241473998446786105682286003208993649406238722161069532282900618217219492148604518557515368241354830826940556257234738134897451091801018568418762856248825737587480173029024436395984067723608292575876261695468817805283649009112581009389828573386359739601662047431757990274166003464056141974382728940618484203465938650973604530113187308736921734424683365243118100998126580691247572322148932020120247574456331416847236654458804902164954387120540919072050362384906504090722699288613319388277341509353032905698955788548406169450791248838342383275106318381042808878054409211203094805561198699897359477344778815969939545770630197346441568662820604992751625101251259774130554173720020589092927339037514717894135290456906563866080001 | -2299819935653645082894452792461391785316838819634854499582649773064497657338657176722815066047012042970707985364005424194851744592589349276289737892620644753316103773332601282923749730891215409124729751179101572661546264659399035941959433049031612193674931427369793499974748103941854396793949658196683481215335075331190973321382630193047486040570710476538476805752828595396636100262237982462365668148474400831819729686520016831142034423035989126884829798702369001522511603033547628403647714677841344568950917375570064143430404597420770773439867113060747581916408770350655859231601822693794335340024703291277047383009545489812044665828872069515086161470043404212964143599392663515383545253369964683097804303493196001346972875807092655666775774755153966987089557598493216241473998446786105682286003208993649406238722161069532282900618217219492148604518557515368241354830826940556257234738134897451091801018568418762856248825737587480173029024436395984067723608292575876261695468817805283649009112581009389828573386359739601662047431757990274166003464056141974382728940618484203465938650973604530113187308736921734424683365243118100998126580691247572322148932020120247574456331416847236654458804902164954387120540919072050362384906504090722699288613319388277341509353032905698955788548406169450791248838342383275106318381042808878054409211203094805561198699897359477344778815969939545770630197346441568662820604992751625101251259774130554173720020589092927339037514717894135290456906563866080001 |
| </code> | </code> |
| * code, of module ''Main'', used with module FileSystem:<code Haskell> | * example, used with module FileSystem |
| | * code, of module ''Main'':<code Haskell> |
| import qualified FileSystem as FS | import qualified FileSystem as FS |
| import qualified System.IO as SysIo | import qualified System.IO as SysIo |
| The quick brown fox jumps over the lazy dog. | The quick brown fox jumps over the lazy dog. |
| </code> | </code> |
| * executes, with output:<code> | * executes, with output, first line stdout, second line stderr:<code> |
| The quick brown fox jumps over the lazy dog. | The quick brown fox jumps over the lazy dog. |
| The_quick_brown_fox_jumps_over_the_lazy_dog. | The_quick_brown_fox_jumps_over_the_lazy_dog. |
| </code> | </code> |
| |
| | |
| | ===== ✎ ===== |
| | ~~DISCUSSION~~ |