Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: easy question: transform Float -> Int how? (John M. Dlugosz)
2. Re: development workflow ? (Daniel Trstenjak)
3. Re: development workflow ? (Brent Yorgey)
----------------------------------------------------------------------
Message: 1
Date: Fri, 25 Apr 2014 11:29:46 -0500
From: "John M. Dlugosz" <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] easy question: transform Float -> Int
how?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 4/25/2014 10:03 AM, Arjun Comar wrote:
> Hi John,
>
> This page <http://www.haskell.org/haskellwiki/Converting_numbers> should have
> you covered.
> Check section 3 especially.
Very nice?thanks for the link.
David: I must have overlooked round,truncate,ceiling. I think I didn't realize
that they
don't return the same type that they take as argument. Anyway, "round" worked.
Thanks!
------------------------------
Message: 2
Date: Fri, 25 Apr 2014 18:59:04 +0200
From: Daniel Trstenjak <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] development workflow ?
Message-ID: <20140425165904.GA12577@machine>
Content-Type: text/plain; charset=us-ascii
On Fri, Apr 25, 2014 at 11:26:44AM -0500, John M. Dlugosz wrote:
> To be specific, in Graphics/Gloss/Internals/Render/Circle.hs
>
> {-# INLINE circleSteps #-}
> circleSteps :: Float -> Int
> circleSteps sDiam
> | sDiam < 8 = 8
> | sDiam < 16 = 16
> | sDiam < 32 = 32
> | otherwise = round sDiam
Ok, I see, if you have to modify such an internal function, then
forking the package might really be the only solution.
If you're using a cabal sandbox with 'add-source', then you
might not need to rename the gloss package, if cabal first searches
for dependencies in the added sources and then on hackage. But
I'm not sure about this one.
Greetings,
Daniel
------------------------------
Message: 3
Date: Fri, 25 Apr 2014 13:39:35 -0400
From: Brent Yorgey <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] development workflow ?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
On Fri, Apr 25, 2014 at 06:59:04PM +0200, Daniel Trstenjak wrote:
>
> On Fri, Apr 25, 2014 at 11:26:44AM -0500, John M. Dlugosz wrote:
> > To be specific, in Graphics/Gloss/Internals/Render/Circle.hs
> >
> > {-# INLINE circleSteps #-}
> > circleSteps :: Float -> Int
> > circleSteps sDiam
> > | sDiam < 8 = 8
> > | sDiam < 16 = 16
> > | sDiam < 32 = 32
> > | otherwise = round sDiam
>
> Ok, I see, if you have to modify such an internal function, then
> forking the package might really be the only solution.
>
> If you're using a cabal sandbox with 'add-source', then you
> might not need to rename the gloss package, if cabal first searches
> for dependencies in the added sources and then on hackage.
Yes, that's what it does. Renaming the package should not be
necessary.
-Brent
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 70, Issue 48
*****************************************