Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/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. Fractional of DiffTime (Baa)
----------------------------------------------------------------------
Message: 1
Date: Fri, 18 Aug 2017 12:35:19 +0300
From: Baa <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] Fractional of DiffTime
Message-ID: <20170818123519.06c26706@Pavel>
Content-Type: text/plain; charset=US-ASCII
Hello, List!
DiffTime type has "closed" on itself operation "/". So,
(/) :: DiffTime -> DiffTime -> DiffTime
But from a physics point of view, it doesn't make sense. When you
divide hours by hours you get "dimensionless" value, not units
(hours) but simple number (I'm not sure how it's named in English).
And it's true for any physical values:
[m/s] : [m/s] = [Int] (not [m/s] sure)
Is it right to define CLOSED "/" for such set like DiffTime?
===
Best regards, Paul
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 110, Issue 18
******************************************