[Haskell-cafe] runInteractiveCommand

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Mon Apr 9 09:46:37 EDT 2007

On Apr 9, 2007, at 8:57 , Dave Feustel wrote:

> I tried the code below with both ghc 6.2.2 and hugs march 2005.
> ghc: "The last statement in a 'do' construct must be an expression"

The indentation got mangled.  Reindent the lines of the "do" so they  
line up:

> eval s = do (_,hOutput,_,hProcess) <- runInteractiveCommand s
>             sOutput <- hGetContents hOutput

brandon s. allbery  [solaris,freebsd,perl,pugs,haskell]   
allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]   
allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university       

More information about the Haskell-Cafe mailing list