Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  How to improve the accuracy of floating      point
      calculation? (John Wiegley)
   2. Re:  How to improve the accuracy of floating      point
      calculation? (Brandon Allbery)
   3.  Can someone help to unnest this "do" cascade (Martin Drautzburg)
   4.  Hackages that only depend on Haskell Platform (Darren Grant)


----------------------------------------------------------------------

Message: 1
Date: Wed, 06 Feb 2013 02:31:29 -0600
From: "John Wiegley" <jo...@fpcomplete.com>
Subject: Re: [Haskell-beginners] How to improve the accuracy of
        floating        point calculation?
To: beginners@haskell.org
Message-ID: <m2a9rhsv1a....@newartisans.com>
Content-Type: text/plain

>>>>> yi lu <zhiwudazhanjiang...@gmail.com> writes:

> I'll try CReal.

Also try the 'numbers' library.

-- 
John Wiegley
FP Complete                         Haskell tools, training and consulting
http://fpcomplete.com               johnw on #haskell/irc.freenode.net



------------------------------

Message: 2
Date: Wed, 6 Feb 2013 09:03:48 -0500
From: Brandon Allbery <allber...@gmail.com>
Subject: Re: [Haskell-beginners] How to improve the accuracy of
        floating        point calculation?
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Message-ID:
        <cakfcl4xvwxmqd9hvuoefj_szsqqap_shbknd-noyixb0_mr...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Tue, Feb 5, 2013 at 6:04 PM, yi lu <zhiwudazhanjiang...@gmail.com> wrote:

> Thanks!
> I'll try CReal.
> But can I set *significant figures **myself?*
>

You can't change ghci's output format, but you can do your own output
instead of relying on ghci's.
http://hackage.haskell.org/packages/archive/base/latest/doc/html/Text-Printf.htmlmight
be of interest, or doing it manually with scaling and Prelude.round.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130206/8d15422c/attachment-0001.htm>

------------------------------

Message: 3
Date: Wed, 6 Feb 2013 22:31:05 +0100
From: Martin Drautzburg <martin.drautzb...@web.de>
Subject: [Haskell-beginners] Can someone help to unnest this "do"
        cascade
To: beginners@haskell.org
Message-ID: <201302062231.05196.martin.drautzb...@web.de>
Content-Type: Text/Plain;  charset="iso-8859-1"

Hello all,

here is a Code snipped from a Sound.ALSA.Sequencer example (much has been 
stripped and this code does not do anything). I just don't seem to get it. Can 
someone please walk me through it and possibly show ways to avoid the massive 
nesting.

dtz = do
    SndSeq.withDefault SndSeq.Block $ \h -> do
      Client.setName (h :: SndSeq.T SndSeq.DuplexMode) "Haskell-Melody"
      Port.withSimple h "out"
        (Port.caps [Port.capRead, Port.capSubsRead, Port.capWrite])
        (Port.types [Port.typeMidiGeneric, Port.typeApplication]) $ \p -> do
            Queue.with h $ \q -> do
              c <- Client.getId h
              let me = Addr.Cons c p
              conn <- parseDestArgs h me ["20:0"]
              Queue.control h q Event.QueueStart Nothing
              Queue.control h q (Event.QueueTempo (Event.Tempo 10000000)) 
Nothing
              return ()
-- 
Martin



------------------------------

Message: 4
Date: Wed, 6 Feb 2013 22:37:59 -0800
From: Darren Grant <therealklu...@gmail.com>
Subject: [Haskell-beginners] Hackages that only depend on Haskell
        Platform
To: Haskell Beginners <beginners@haskell.org>
Message-ID:
        <ca+jd6sjaksqp0jq9nxb1jseipqhblpzyjbmupe4vdp4ehan...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

So after encountering the dangers associated with installing many random
hackages I am on a mission to cull the herd.

So to that effect:

Is there a list of hackages available that *only* depend on the latest
Haskell Platform?

-or-

Can such a list be reasonably generated?

-or-

Will there even be anything left after the hackages are filtered?


Apologies if this is in fact already in the archives!

Cheers,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130206/20c0cdf5/attachment-0001.htm>

------------------------------

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 56, Issue 12
*****************************************

Reply via email to