Import hs-plugins cvs

This commit is contained in:
Don Stewart
2005-04-24 08:51:33 +00:00
commit 887fa59389
494 changed files with 23721 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import Printf
main = do
printf "%d\n" $> (42 :: Int) ! []
printf "0x%X\n" $> (42 :: Int) ! []
printf "%f\n" $> (42.1234 :: Double) ! []
printf "%c:%c:%c\n" $> 'a' ! 'b' ! 'c' ! []
printf "%s\n" $> "haskell" ! []
printf "%-010.4d\n" $> (42 :: Int) ! []
printf "%010.4f\n" $> (42.1234 :: Double) ! []
printf "%10.4s\n" $> (7 :: Int)! []
printf "%-10.4s\n" $> "haskell" ! []