[Bug 873385] New: Random module fails on Doubles because of odd minBound behaviour
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=873385
Bug ID: 873385
QA Contact: extras-qa(a)fedoraproject.org
Severity: unspecified
Version: 17
Priority: unspecified
CC: haskell-devel(a)lists.fedoraproject.org,
petersen(a)redhat.com
Assignee: petersen(a)redhat.com
Summary: Random module fails on Doubles because of odd minBound
behaviour
Regression: ---
Story Points: ---
Classification: Fedora
OS: Unspecified
Reporter: imc(a)cs.ox.ac.uk
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: NEW
Component: hugs98
Product: Fedora
I'm not sure how live this project is any more, but here goes...
$ rpm -q hugs98
hugs98-2006.09-11.fc17.x86_64
$ hugs
Type :? for help
Hugs> :load Random
Random> randomR (1::Double,10) (mkStdGen 3)
(
Program error: arithmetic overflow
The equivalent answer in ghci is:
(1.928919588914141,2109513658 1655838864)
This seems to happen because:
Random> minBound::Int
-2147483648
Random> toInteger (minBound::Int)
-18446744071562067968
Random> toInteger (maxBound::Int)
2147483647
The implementation of Random on Doubles uses the construction
"toInteger (minBound::Int)" to get an integer random number, but
the implementation of Random on integers falls over on values
greater than 2^32-1.
--
You are receiving this mail because:
You are on the CC list for the bug.
8 years, 6 months
[Bug 837388] New: Bluetile doesn't work properly with Java GUI apps
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=837388
Bug ID: 837388
QA Contact: extras-qa(a)fedoraproject.org
Severity: medium
Version: 17
Priority: unspecified
CC: haskell-devel(a)lists.fedoraproject.org,
petersen(a)redhat.com
Assignee: petersen(a)redhat.com
Summary: Bluetile doesn't work properly with Java GUI apps
Regression: ---
Story Points: ---
Classification: Fedora
OS: Linux
Reporter: t.hlavnicka(a)centrum.cz
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: NEW
Component: bluetile
Product: Fedora
Description of problem:
Bluetile doesn't work properly with Java GUI applications. Some Java GUI
elements are not gaining focus after mouse clicks (like text areas) and its not
possible to work with those elements.
Version-Release number of selected component (if applicable):
bluetile-0.6-5.fc17
java-1.7.0-openjdk-1.7.0.3-2.2.1.fc17.8
How reproducible:
Using any Java Swing application (like Netbeans) with text areas.
Actual results:
User can't write anything into text area.
Expected results:
Being able to write into focused text area.
Additional info:
This is tested only on x86 plaform. I am using Bluetile with Xfce desktop.
Bluetile is working properly in Fedora 15 and openjdk 1.6.0 (tested on x86 and
x86_64)
--
You are receiving this mail because:
You are on the CC list for the bug.
8 years, 6 months
Best way to install and work with Haskell
by Martin Cigorraga
Hi,
I'm new to Haskell and I would like to know what would be the best way
to install and work with it.
For example with Python I set virtual environments so I can work
relaxed there with the confidence that nothing will be broken at
system level; I can work then with different versions of the
libraries, keep things generally more clean, etc.
Is there something like this for Haskell? Should I set similar
environments or I am good to go by just installing the GHC related
packages (and some useful extras like haskell-platform)?
Kind regards.
8 years, 8 months