Hi all!
I have found a simple program on the web:
--code begin: copierer.hs
module Main (main)
where
main = interact id
--code end
I compiled it with
ghc -threaded --make copierer.hs
If i start it from a terminal,it behaves like the cat program without
arguments: simply copies the stdin to
(hin, hout, _, p) - runInteractiveProcess copierer [] Nothing
./twowaysubprocesscomm
twowaysubprocesscomm: fd:7: hGetLine: end of file
twowaysubprocesscomm: fd:6: hPutChar: resource vanished (Broken pipe)
Because you didn't give the right path to copierer.
And you should hSetBuffering in
As mentioned by the first person to follow up, you need to set
line buffering in the copier program. It's filling up its buffer
while you write small lines to it - unlike the test run at the
terminal prompt, where it's connected to a TTY device and therefore
behaved differently.
In a situation
An odd suggestion I know, but take a look at some bibles. The King
James Bible uses the word kind to describe different animals in Genesis 1:
^24 And God said, Let the earth bring forth the living creature after
his kind, cattle, and creeping thing, and beast of the earth after his
kind: and
What a nice idea! Here's a list:
http://www.biblestudytools.com/genesis/1-24-compare.html
The German word is indeed Art, the French word is espèce.
Sjoerd
On Nov 13, 2011, at 9:31 PM, Paul Johnson wrote:
An odd suggestion I know, but take a look at some bibles. The King James
Bible uses
First of all, my German is Worse than Cakes of my Grandmother...
But I spent a big part of my life in France, and I witness a similar
bedlam for years, especially because of the fact that English is a
particular version of Norman French spoiled by the consumption of hot
potatoes, and the
I think you hit on something there in between the humorous rant.
German has a propensity to choose latin words and germanize them with
spelling and prononciation changes. Even if English speaking
Haskellers pick 'kind' to refer to just that, Phylus in German might
be a better translation. Now
Hi Mikhail,
your type class:
class MonadAbort e μ ⇒ MonadRecover e μ | μ → e where
recover ∷ μ α → (e → μ α) → μ α
looks a lot like the MonadCatchIO type class from MonadCatchIO-transformers:
class MonadIO m = MonadCatchIO m where
catch :: E.Exception e = m a - (e - m a) - m a
I haven't
Type (data type) translates to Gagnatag.
Singular:
* Nominative: gagnatag
* Accusative: gagnatag
* Dative: gagnatagi
* Genitive: gagnatags
Plural:
* Nominative: gagnatög
* Accusative: gagnatög
* Dative: gagnatögum
* Genitive: gagnataga
You can drop the gagna- prefix and get the
Iteratee-compress provides compressing and decompressing enumerators
including flushing (using John Lato's implementation). Currently only
gzip and bzip is provided but LZMA is planned.
Changes from previous version:
- Move API from enumerator to enumeratee
Next goals:
- LZMA support
-
I am trying to debug a stack overflow that seems to be caused by a
large chain of thunks being evaluated all at once. I have some
profiles generated using +RTS -hd -RTS that show some promising
candidates, but they have generated names like
Module.sat_s9et, Module.sat_s9jk, etc
Is there any
On 11/14/2011 06:55 AM, Bas van Dijk wrote:
Hi Mikhail,
your type class:
class MonadAbort e μ ⇒ MonadRecover e μ | μ → e where
recover ∷ μ α → (e → μ α) → μ α
looks a lot like the MonadCatchIO type class from MonadCatchIO-transformers:
class MonadIO m = MonadCatchIO m where
catch ::
12 matches
Mail list logo