Hello world/Line printer: Difference between revisions

Content added Content deleted
(→‎{{header|Haskell}}: Updated from use of a deprecated library)
Line 490: Line 490:


=={{header|Haskell}}==
=={{header|Haskell}}==
<lang haskell>import System.Process (ProcessHandle, runCommand)


main :: IO ProcessHandle
<lang haskell>
main = runCommand "echo \"Hello World!\" | lpr"</lang>
import System.Cmd

cmd = "echo \"Hello World!\" | lpr"

main = system cmd
</lang>


=={{header|Icon}} and {{header|Unicon}}==
=={{header|Icon}} and {{header|Unicon}}==