- 29 Aug, 2001 7 commits
-
-
simonmar authored
Fix *two* bugs in formatRealFloat: The first one is in the Haskell 98 errata, namely that negative exponents cause an infinite loop in the FFFixed case when no precision is specified. eg. `Numeric.showFFloat Nothing 0.02 ""' I've modified the code in the errata to properly handle the e == 0 case and to be slightly more efficient when e > 0. The second bug is this: Prelude> Numeric.showFFloat (Just 0) 0.02 "" "0."
-
rje authored
FCode/Code is now a monad, and thus now also a constructed type, rather than a type synonym. This requires quite a lot of changes in quite a lot of files, but none of these changes should have changed the behaviour of anything. Being a Monad allows code that used FCode to be IMHO rather more readable as it can use do notation, and other common Monad idioms. In addition, state has been abstracted away with getter and setter functions, so that functions mess with the innards of FCode as little as possible - making it easier to change FCode in future.
-
simonmar authored
- use SET_HDR rather than initialising header.info directly (fixes potential bugs with profiling). - add some masking to the Int32/Word32 cases to match the Int8-16 and Word8-16 cases (potential 64-bit bugs).
-
simonmar authored
Add genRange method to class RandomGen, as per the revised Haskell 98 library report.
-
simonmar authored
Make the Permissions type non-abstract as per the revised Haskell 98 report.
-
simonmar authored
update maximumBy and minimumBy in line with the revised Haskell 98 report
-
simonmar authored
Changes to the Ix class from the revised Haskell 98 report: - Ord is no longer a superclass of Ix. - rangeSize is now a class member, as there are cases when it is useful to be able to override it. As a result, GHC's performance-improving "unsafeRangeSize" function also has to be a class method just in case the programmer has overriden rangeSize. Of course, unsafeRangeSize isn't visible when just importing Ix. - Added unsafeRangeSize bindings to all our standard Ix instances. - Improved the Ix instances for Int{8,16,32,64} and Word{8,16,32,64} by defining unsafeIndex instead of index, and providing a definition of unsafeRangeSize. I hope I haven't mucked anything up :) The array tests all pass successfully, except for arr016 which depended on Ord being a superclass of Ix. I'll commit changes to this test shortly.
-
- 28 Aug, 2001 9 commits
-
-
sof authored
bring PprType (and its Outputable Type instance) into scope
-
simonmar authored
Change the definition of recip in the instance of Fractional for Ratio, to: recip (x:%y) = y % x as per the revised Haskell 98 report.
-
simonmar authored
Bring scanr1, scanl, and scanl1 into line with the revised H98 report.
-
simonmar authored
Add instances of Eq & Ord up to size 15 (Bounded, Read & Show will have to wait)
-
simonmar authored
Correct the USE_REPORT_PRELUDE definition of (!!).
-
simonpj authored
---------------------------------------- Make isFFIArgumentTy understand newtypes ---------------------------------------- This fixes the bug Manuel reported: newtype T = T (Ptr T) foreign import ccall foo :: T -> IO (Ptr T) test.hs:6: Unacceptable argument type in foreign declaration: T On the way, I moved isFFIArgumentTy and friends out of TysWiredIn, where they didn't really belong, into TcType. That in turn force me to move isStrictType, and isPrimitiveType.
-
simonpj authored
Add pprEquation
-
simonmar authored
Fix (read "Infinity") and (read "NaN") for RealFloat types.
-
apt authored
fix problem with -fno-code
-
- 27 Aug, 2001 5 commits
-
-
apt authored
shut up shortMeOut traces
-
apt authored
use qualified names to indicate external status of values
-
apt authored
document 31-bit core output option settings
-
simonmar authored
a couple of tweaks to the hc-file-bundle target: - Add -r option to ${RM} to blow away an existing binary-dist temporary directory if present. - Fix bogons in the bundle building code.
-
simonmar authored
foldr is a good consumer (but not necessarily a good producer)
-
- 24 Aug, 2001 14 commits
-
-
simonmar authored
correct off-by-one error in hGetStringBuffer
-
sewardj authored
Fill in details for 5.02.
-
simonpj authored
Make when comparing old and new strictness information, we were being a bit too generous with the old case. When a function has (say) arity 2, we can't use strictness info like SSS, because that only applies if the fn is applied to 3 args. So it's an unfair comparison. This commit makes the old->new conversion function more truthful in this regard, which should eliminate the erroneously-claimed "worse" strictness results.
-
chak authored
wibble
-
simonpj authored
------------------------------ Another demand analyser glitch ------------------------------ This fixes, I hope, (in an unsatisfactory way) another demand-analyser glitch, that resulted in a runtime "entered absent arg" error. In DmdAnal.annotateLamIdBndr, we now have: -- This gross hack is needed because otherwise we label -- a lambda binder with demand 'B'. But in terms of calling -- conventions that's Abs, because we don't pass it. But -- when we do a w/w split we get -- fw x = (\x y:B -> ...) x (error "oops") -- And then the simplifier things the 'B' is a strict demand -- and evaluates the (error "oops"). Sigh The hack zaps 'B' to 'Abs', just like 'lazify' does. Need to talk to John about what the principled reasons are.
-
simonpj authored
Improve error message for mis-matched contexts
-
simonpj authored
Fix an obscure but easy bug in SpecConstr
-
simonmar authored
- document :info - bring up to date info about FFI support
-
rrt authored
Remove unused import of DmdType
-
sewardj authored
First cut at new compiler + interpreter changes for 5.02. Also rearranged the order of sections.
-
simonpj authored
Comment only
-
simonpj authored
Improve error message for nullary class
-
chak authored
* Added a brief outline of the handling of command line options * Revised Reuben's explanation re -no-hs-main according to our email exchange
-
chak authored
Added SPJ's new -fmax-worker-args to the flag reference
-
- 23 Aug, 2001 5 commits
-
-
gla authored
Correct typos and minor errors. Reorganized most of the sections, and the interface subsection appears first in each section. Made a small change to Figure 1, the overall architecture of the storage manager. The description on the configuration of the nursery is now correct. Added a short section on the state of the heap allocator.
-
qrczak authored
Don't say that GHC doesn't do fixity resolution on the left hand side of a binding before deciding which symbol is the function symbol. This has been fixed.
-
gla authored
Rephrased a few paragraphs. Added a paragraph on the interface to retainerSet. Added 'To do' paragraphs, which may be useful for maintenance.
-
simonpj authored
Fix representation finding for recursive newtypes
-
simonmar authored
Note that support for generics is currently broken.
-