Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/libraries/fps/tests/inline.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


import Data.ByteString (singleton)
import qualified Data.ByteString as B

main = do
{-
    let x = singleton 2
        y = singleton 1

    print (B.length x)
    print (B.length y)

    let (x1,s1,l1) = B.toForeignPtr x
        (x2,s2,l2) = B.toForeignPtr y

    print (x1,s1,l1)
    print (x2,s2,l2)
-}


    print "Expect: GT"
    print (singleton 255 `compare` singleton 127)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.