haskell-directory.git
17 years agodos2unix
Simon Marlow [Mon, 4 Dec 2006 09:54:39 +0000 (09:54 +0000)]
dos2unix

17 years agodon't try to compile this on Unix
Simon Marlow [Mon, 4 Dec 2006 09:54:27 +0000 (09:54 +0000)]
don't try to compile this on Unix

17 years agoTAG 6.6 release
Ian Lynagh [Wed, 11 Oct 2006 12:47:40 +0000 (12:47 +0000)]
TAG 6.6 release

17 years agoTAG Version 2.1
Ian Lynagh [Mon, 9 Oct 2006 11:40:14 +0000 (11:40 +0000)]
TAG Version 2.1

17 years agoBump version number
Ian Lynagh [Mon, 9 Oct 2006 11:40:09 +0000 (11:40 +0000)]
Bump version number

17 years agoAdd support for the IO manager thread on Windows
Simon Marlow [Fri, 1 Dec 2006 15:20:42 +0000 (15:20 +0000)]
Add support for the IO manager thread on Windows
Fixes #637.  The test program in that report now works for me with
-threaded, but it doesn't work without -threaded (I don't know if
that's new behaviour or not, though).

17 years agoderiving (Eq, Ord, Enum, Show, Read, Typeab) for ConsoleEvent
Simon Marlow [Fri, 1 Dec 2006 14:40:32 +0000 (14:40 +0000)]
deriving (Eq, Ord, Enum, Show, Read, Typeab) for ConsoleEvent

17 years agoMake sure the threaded threadDelay sleeps at least as long as it is asked to
Ian Lynagh [Tue, 28 Nov 2006 20:48:07 +0000 (20:48 +0000)]
Make sure the threaded threadDelay sleeps at least as long as it is asked to

17 years agoAdd comments about argument order to the definitions of gmapQ and constrFields
simonpj@microsoft [Fri, 24 Nov 2006 16:45:05 +0000 (16:45 +0000)]
Add comments about argument order to the definitions of gmapQ and constrFields

17 years agoHugs: add Control.Parallel.Strategies
Ross Paterson [Fri, 24 Nov 2006 16:10:39 +0000 (16:10 +0000)]
Hugs: add Control.Parallel.Strategies

17 years agoMove instance of Show Ptr to Ptr.hs (fewer orphans)
simonpj@microsoft.com [Fri, 24 Nov 2006 10:06:39 +0000 (10:06 +0000)]
Move instance of Show Ptr to Ptr.hs (fewer orphans)

17 years agoAdd type signatures
simonpj@microsoft.com [Fri, 24 Nov 2006 10:06:21 +0000 (10:06 +0000)]
Add type signatures

17 years agoAdd an example of the use of unfoldr, following doc feedback from dozer
Don Stewart [Fri, 24 Nov 2006 01:12:49 +0000 (01:12 +0000)]
Add an example of the use of unfoldr, following doc feedback from dozer

17 years agotrim imports
Ross Paterson [Thu, 23 Nov 2006 19:03:52 +0000 (19:03 +0000)]
trim imports

17 years agoData.Graph is now portable (enable for nhc98)
Malcolm.Wallace@cs.york.ac.uk [Thu, 23 Nov 2006 17:49:13 +0000 (17:49 +0000)]
Data.Graph is now portable (enable for nhc98)

17 years agoremove Data.FunctorM and Data.Queue
Ross Paterson [Sun, 12 Nov 2006 00:10:46 +0000 (00:10 +0000)]
remove Data.FunctorM and Data.Queue

These were deprecated in 6.6, and can thus be removed in 6.8.

17 years agomake Data.Graph portable (no change to the interface)
Ross Paterson [Wed, 22 Nov 2006 01:00:40 +0000 (01:00 +0000)]
make Data.Graph portable (no change to the interface)

The algorithm now uses STArrays on GHC and IntSets elsewhere.
(Hugs has STArrays, but avoiding them saves a -98, and boxed arrays
aren't fast under Hugs anyway.)

17 years agoOne less unsafeCoerce# in the tree
Don Stewart [Mon, 20 Nov 2006 12:02:42 +0000 (12:02 +0000)]
One less unsafeCoerce# in the tree

17 years agotypo in comment
Ross Paterson [Mon, 20 Nov 2006 11:51:06 +0000 (11:51 +0000)]
typo in comment

17 years agofix shift docs to match ffi spec
Ross Paterson [Fri, 17 Nov 2006 00:31:44 +0000 (00:31 +0000)]
fix shift docs to match ffi spec

17 years ago(nhc98) use new primitive implementations of h{Put,Get}Buf.
Malcolm.Wallace@cs.york.ac.uk [Thu, 16 Nov 2006 17:31:04 +0000 (17:31 +0000)]
(nhc98) use new primitive implementations of h{Put,Get}Buf.

17 years agoThe wrong 'cycle' was exported from Data.ByteString.Lazy.Char8, spotted by sjanssen
Don Stewart [Fri, 10 Nov 2006 02:13:11 +0000 (02:13 +0000)]
The wrong 'cycle' was exported from Data.ByteString.Lazy.Char8, spotted by sjanssen

17 years agoLPS chunk sizes should be 16 bytes, not 17.
Don Stewart [Fri, 10 Nov 2006 02:12:54 +0000 (02:12 +0000)]
LPS chunk sizes should be 16 bytes, not 17.

17 years agoUpdate comments on Prelude organisation in GHC/Base.lhs
Ian Lynagh [Wed, 15 Nov 2006 00:19:26 +0000 (00:19 +0000)]
Update comments on Prelude organisation in GHC/Base.lhs

17 years agoControl.Parallel.Strategies clean-up: Added export list to avoid exporting seq, fixed...
bringert@cs.chalmers.se [Mon, 13 Nov 2006 22:42:02 +0000 (22:42 +0000)]
Control.Parallel.Strategies clean-up: Added export list to avoid exporting seq, fixed import list strangeness that haddock choked on, and moved the deprecated functions to a separate section.

17 years agoControl.Parallel.Strategies: added NFData instances for Data.Int.*, Data.Word.*,...
bringert@cs.chalmers.se [Mon, 13 Nov 2006 22:18:43 +0000 (22:18 +0000)]
Control.Parallel.Strategies: added NFData instances for Data.Int.*, Data.Word.*, Maybe, Either, Map, Set, Tree, IntMap, IntSet.

17 years agoControl.Parallel.Strategies: deprecate sPar, sSeq, Assoc, fstPairFstList, force and...
bringert@cs.chalmers.se [Mon, 13 Nov 2006 21:52:19 +0000 (21:52 +0000)]
Control.Parallel.Strategies: deprecate sPar, sSeq, Assoc, fstPairFstList, force and sforce.
Code comments indicated that sPar and sSeq have been superceded by sparking and demanding, and that Assoc, fstPairFstList, force and sforce are examples and hacks needed by the Lolita system.

17 years agoadd Control.Monad.Instances to nhc98 build
Malcolm.Wallace@cs.york.ac.uk [Mon, 13 Nov 2006 11:32:21 +0000 (11:32 +0000)]
add Control.Monad.Instances to nhc98 build

17 years agoControl.Parallel.Strategies: clarified documentation of parListChunk.
bringert@cs.chalmers.se [Sun, 12 Nov 2006 23:29:04 +0000 (23:29 +0000)]
Control.Parallel.Strategies: clarified documentation of parListChunk.

17 years agoAdded and cleaned up Haddock comments in Control.Parallel.Strategies.
bringert@cs.chalmers.se [Sun, 12 Nov 2006 22:04:45 +0000 (22:04 +0000)]
Added and cleaned up Haddock comments in Control.Parallel.Strategies.
Many of the definitions in Control.Parallel.Strategies had missing or unclear Haddock comments. I converted most of the existing plain code comments to haddock comments, added some missing documentation and cleaned up the existing Haddock mark-up.

17 years agoFix broken pragmas; spotted by Bulat Ziganshin
Ian Lynagh [Sat, 11 Nov 2006 20:59:16 +0000 (20:59 +0000)]
Fix broken pragmas; spotted by Bulat Ziganshin

17 years agoadd doc link to bound threads section
Ross Paterson [Fri, 29 Sep 2006 10:32:52 +0000 (10:32 +0000)]
add doc link to bound threads section

17 years agohide Data.Array.IO.Internals
Ross Paterson [Sat, 11 Nov 2006 11:32:48 +0000 (11:32 +0000)]
hide Data.Array.IO.Internals

It's hidden from haddock, and everything it exports is re-exported by
Data.Array.IO.

17 years agoadd Data.Function
Malcolm.Wallace@cs.york.ac.uk [Fri, 10 Nov 2006 14:27:10 +0000 (14:27 +0000)]
add Data.Function

17 years agoadd Data.Function
Ross Paterson [Fri, 10 Nov 2006 14:13:54 +0000 (14:13 +0000)]
add Data.Function

17 years agowhitespace only
Ross Paterson [Fri, 10 Nov 2006 14:13:26 +0000 (14:13 +0000)]
whitespace only

17 years agomove fix to Data.Function
Ross Paterson [Fri, 10 Nov 2006 14:11:20 +0000 (14:11 +0000)]
move fix to Data.Function

17 years agoimport Prelude
Ross Paterson [Fri, 10 Nov 2006 14:04:45 +0000 (14:04 +0000)]
import Prelude

17 years agoAdded Data.Function (Trac ticket #979).
Nils Anders Danielsson [Fri, 10 Nov 2006 12:25:03 +0000 (12:25 +0000)]
Added Data.Function (Trac ticket #979).
+ A module with simple combinators working solely on and with
  functions.
+ The only new function is "on".
+ Some functions from the Prelude are re-exported.

17 years ago__hscore_long_path_size is not portable beyond GHC
Malcolm.Wallace@cs.york.ac.uk [Fri, 10 Nov 2006 11:32:22 +0000 (11:32 +0000)]
__hscore_long_path_size is not portable beyond GHC

17 years agoredefine writeFile and appendFile using withFile
Ross Paterson [Tue, 7 Nov 2006 14:03:59 +0000 (14:03 +0000)]
redefine writeFile and appendFile using withFile

17 years agoadd withFile and withBinaryFile (#966)
Ross Paterson [Tue, 7 Nov 2006 13:45:10 +0000 (13:45 +0000)]
add withFile and withBinaryFile (#966)

17 years agoremove conflicting import for nhc98
Malcolm.Wallace@cs.york.ac.uk [Wed, 8 Nov 2006 11:12:15 +0000 (11:12 +0000)]
remove conflicting import for nhc98

17 years agoAdd intercalate to Data.List (ticket #971)
Josef Svenningsson [Thu, 2 Nov 2006 12:20:52 +0000 (12:20 +0000)]
Add intercalate to Data.List (ticket #971)

17 years agonon-GHC: fix canonicalizeFilePath
Ross Paterson [Tue, 7 Nov 2006 13:39:02 +0000 (13:39 +0000)]
non-GHC: fix canonicalizeFilePath

I've also removed the #ifdef __GLASGOW_HASKELL__ from the proper
Windows versions of a few functions.  These will need testing with
Hugs on Windows.

17 years agoenable canonicalizePath for non-GHC platforms
Simon Marlow [Tue, 7 Nov 2006 12:11:41 +0000 (12:11 +0000)]
enable canonicalizePath for non-GHC platforms

17 years agoUpdate documentation for hWaitForInput
Simon Marlow [Tue, 7 Nov 2006 11:14:30 +0000 (11:14 +0000)]
Update documentation for hWaitForInput
See #972
Merge to 6.6 branch.

17 years agoUse unchecked shifts to implement Data.Bits.rotate
Samuel Bronson [Thu, 12 Oct 2006 12:55:53 +0000 (12:55 +0000)]
Use unchecked shifts to implement Data.Bits.rotate
This should get rid of those cases, maybe lower the size enough that the inliner will like it?

17 years agofix Haddock module headers
Ross Paterson [Mon, 6 Nov 2006 12:41:40 +0000 (12:41 +0000)]
fix Haddock module headers

17 years agofix example in docs
Ross Paterson [Mon, 6 Nov 2006 11:56:28 +0000 (11:56 +0000)]
fix example in docs

17 years agoAdd intercalate and split to Data.List
Josef Svenningsson [Tue, 24 Oct 2006 17:23:57 +0000 (17:23 +0000)]
Add intercalate and split to Data.List

17 years agoData.Generics.Basics is GHC-only
Ross Paterson [Thu, 2 Nov 2006 11:17:36 +0000 (11:17 +0000)]
Data.Generics.Basics is GHC-only

17 years ago#ifdef around non-portable Data.Generics.Basics
Malcolm.Wallace@cs.york.ac.uk [Thu, 2 Nov 2006 10:34:45 +0000 (10:34 +0000)]
#ifdef around non-portable Data.Generics.Basics

17 years agoAdd deriving Data to Complex
simonpj@microsoft [Wed, 1 Nov 2006 10:20:59 +0000 (10:20 +0000)]
Add deriving Data to Complex

17 years agominor clarification of RandomGen doc
Ross Paterson [Mon, 30 Oct 2006 23:08:42 +0000 (23:08 +0000)]
minor clarification of RandomGen doc

17 years agorearrange docs a bit
Ross Paterson [Mon, 30 Oct 2006 16:12:23 +0000 (16:12 +0000)]
rearrange docs a bit

17 years agoAdd intercalate and split to Data.List
Josef Svenningsson [Tue, 24 Oct 2006 17:23:57 +0000 (17:23 +0000)]
Add intercalate and split to Data.List

17 years agoExport pseq from Control.Parallel, and use it in Control.Parallel.Strategies
Simon Marlow [Fri, 27 Oct 2006 15:01:41 +0000 (15:01 +0000)]
Export pseq from Control.Parallel, and use it in Control.Parallel.Strategies

17 years ago`par` should be infixr 0
Simon Marlow [Fri, 27 Oct 2006 13:08:00 +0000 (13:08 +0000)]
`par` should be infixr 0
Alas, I didn't spot this due to lack of testing, and the symptom is
that an expression like x `par` y `seq z will have exactly the wrong
parallelism properties.  The workaround is to add parantheses.

I think we could push this to the 6.6 branch.

17 years agofix example in comment
Ross Paterson [Mon, 23 Oct 2006 16:39:25 +0000 (16:39 +0000)]
fix example in comment

17 years agoUse the new Any type for dynamics (GHC only)
simonpj@microsoft [Thu, 19 Oct 2006 16:04:08 +0000 (16:04 +0000)]
Use the new Any type for dynamics (GHC only)

17 years agoadd Data.Sequence to nhc98 build
Malcolm.Wallace@cs.york.ac.uk [Thu, 12 Oct 2006 13:52:00 +0000 (13:52 +0000)]
add Data.Sequence to nhc98 build

17 years agoRemove Data.FiniteMap, add Control.Applicative, Data.Traversable, and
Malcolm.Wallace@cs.york.ac.uk [Thu, 12 Oct 2006 09:56:05 +0000 (09:56 +0000)]
Remove Data.FiniteMap, add Control.Applicative, Data.Traversable, and
Data.Foldable to the nhc98 build.

17 years agoSTM invariants
tharris@microsoft.com [Sat, 7 Oct 2006 12:32:53 +0000 (12:32 +0000)]
STM invariants

17 years agoInline shift in GHC's Bits instances for {Int,Word}{,8,16,32,64}
Samuel Bronson [Mon, 9 Oct 2006 02:09:06 +0000 (02:09 +0000)]
Inline shift in GHC's Bits instances for {Int,Word}{,8,16,32,64}

17 years agoDon't create GHC.Prim when bootstrapping; we can't, and we don't need it
Ian Lynagh [Wed, 4 Oct 2006 16:53:55 +0000 (16:53 +0000)]
Don't create GHC.Prim when bootstrapping; we can't, and we don't need it

17 years agoData.ByteString: fix lazyness of take, drop & splitAt
Don Stewart [Thu, 5 Oct 2006 01:17:03 +0000 (01:17 +0000)]
Data.ByteString: fix lazyness of take, drop & splitAt

ByteString.Lazy's take, drop and splitAt were too strict when demanding
a byte string. Spotted by Einar Karttunen. Thanks to him and to Bertram
Felgenhauer for explaining the problem and the fix.

17 years agoFix syntax error that prevents building Haddock documentation on Windows
brianlsmith@gmail.com [Sun, 17 Sep 2006 01:35:30 +0000 (01:35 +0000)]
Fix syntax error that prevents building Haddock documentation on Windows

17 years agoHugs only: unbreak typeRepKey
Ross Paterson [Fri, 29 Sep 2006 10:27:43 +0000 (10:27 +0000)]
Hugs only: unbreak typeRepKey

17 years agomake hGetBufNonBlocking do something on Windows w/ -threaded
Simon Marlow [Wed, 27 Sep 2006 14:58:11 +0000 (14:58 +0000)]
make hGetBufNonBlocking do something on Windows w/ -threaded
hGetBufNonBlocking will behave the same as hGetBuf on Windows now, which
is better than just crashing (which it did previously).

17 years agoadd typeRepKey :: TypeRep -> IO Int
Simon Marlow [Wed, 27 Sep 2006 10:03:42 +0000 (10:03 +0000)]
add typeRepKey :: TypeRep -> IO Int
See feature request #880

17 years agofix header comment
Ross Paterson [Tue, 26 Sep 2006 13:58:43 +0000 (13:58 +0000)]
fix header comment

17 years agoAdd strict versions of insertWith and insertWithKey (Data.Map)
jeanphilippe.bernardy@gmail.com [Sun, 10 Sep 2006 16:24:43 +0000 (16:24 +0000)]
Add strict versions of insertWith and insertWithKey (Data.Map)

17 years agodoc tweaks, including more precise equations for evaluate
Ross Paterson [Sun, 10 Sep 2006 11:52:59 +0000 (11:52 +0000)]
doc tweaks, including more precise equations for evaluate

17 years agoSync Data.ByteString with stable branch
Don Stewart [Sat, 9 Sep 2006 05:01:11 +0000 (05:01 +0000)]
Sync Data.ByteString with stable branch

This patch:
    * hides the LPS constructor (its in .Base if you need it)
    * adds functions to convert between strict and lazy bytestrings
    * and adds readInteger

17 years agoTypeable1 instances for STM and TVar
Ross Paterson [Mon, 4 Sep 2006 23:14:25 +0000 (23:14 +0000)]
Typeable1 instances for STM and TVar

17 years agoremove obsolete Hugs stuff
Ross Paterson [Mon, 4 Sep 2006 22:39:44 +0000 (22:39 +0000)]
remove obsolete Hugs stuff

17 years agoCleaner isInfixOf suggestion from Ross Paterson
John Goerzen [Fri, 1 Sep 2006 14:36:54 +0000 (14:36 +0000)]
Cleaner isInfixOf suggestion from Ross Paterson

17 years agoNew function isInfixOf that searches a list for a given sublist
John Goerzen [Thu, 31 Aug 2006 15:15:56 +0000 (15:15 +0000)]
New function isInfixOf that searches a list for a given sublist

Example:

isInfixOf "Haskell" "I really like Haskell." -> True
isInfixOf "Ial" "I really like Haskell." -> False

This function was first implemented in MissingH as MissingH.List.contains

17 years agoBetter doc on Data.Map.lookup: explain what the monad is for
jeanphilippe.bernardy@gmail.com [Sun, 3 Sep 2006 13:34:40 +0000 (13:34 +0000)]
Better doc on Data.Map.lookup: explain what the monad is for

17 years agofix hDuplicateTo on Windows
Simon Marlow [Fri, 1 Sep 2006 15:00:16 +0000 (15:00 +0000)]
fix hDuplicateTo on Windows
deja vu - I'm sure I remember fixing this before...

17 years agomark nhc98 import hack
Ross Paterson [Thu, 31 Aug 2006 12:52:19 +0000 (12:52 +0000)]
mark nhc98 import hack

17 years agoremove some outdated comments
Simon Marlow [Thu, 31 Aug 2006 10:42:00 +0000 (10:42 +0000)]
remove some outdated comments

17 years agoimport Control.Arrow.ArrowZero to help nhc98's type checker
Malcolm.Wallace@cs.york.ac.uk [Thu, 31 Aug 2006 10:11:05 +0000 (10:11 +0000)]
import Control.Arrow.ArrowZero to help nhc98's type checker

17 years agoremove Text.Regex(.Posix) from nhc98 build
Malcolm.Wallace@cs.york.ac.uk [Thu, 31 Aug 2006 10:10:16 +0000 (10:10 +0000)]
remove Text.Regex(.Posix) from nhc98 build

17 years agoadd Data.Foldable.{msum,asum}, plus tweaks to comments
Ross Paterson [Wed, 30 Aug 2006 16:35:21 +0000 (16:35 +0000)]
add Data.Foldable.{msum,asum}, plus tweaks to comments

17 years agofix doc typo
Ross Paterson [Wed, 30 Aug 2006 13:41:23 +0000 (13:41 +0000)]
fix doc typo

17 years agoadd Data.Foldable.{for_,forM_} and Data.Traversable.{for,forM}
Ross Paterson [Wed, 30 Aug 2006 13:38:05 +0000 (13:38 +0000)]
add Data.Foldable.{for_,forM_} and Data.Traversable.{for,forM}

generalizing Control.Monad.{forM_,forM}

18 years agoMake length a good consumer
simonpj@microsoft [Mon, 8 May 2006 14:27:26 +0000 (14:27 +0000)]
Make length a good consumer

Make length into a good consumer.  Fixes Trac bug #707.

(Before length simply didn't use foldr.)

17 years agoAdd Control.Monad.forM and forM_
Don Stewart [Thu, 24 Aug 2006 08:11:18 +0000 (08:11 +0000)]
Add Control.Monad.forM and forM_

flip mapM_ is more and more common, I find. Several suggestions have
been made to add this, as foreach or something similar. This patch
does just that:

    forM  :: (Monad m) => [a] -> (a -> m b) -> m [b]
    forM_ :: (Monad m) => [a] -> (a -> m b) -> m ()

So we can write:

    Prelude Control.Monad> forM_ [1..4] $ \x -> print x
    1
    2
    3
    4

17 years agoHide internal module from haddock in Data.ByteString
Don Stewart [Mon, 28 Aug 2006 01:15:15 +0000 (01:15 +0000)]
Hide internal module from haddock in Data.ByteString

17 years agoadd advice on avoiding import ambiguities
Ross Paterson [Sun, 27 Aug 2006 17:04:07 +0000 (17:04 +0000)]
add advice on avoiding import ambiguities

17 years agoexpand advice on importing these modules
Ross Paterson [Sun, 27 Aug 2006 16:40:44 +0000 (16:40 +0000)]
expand advice on importing these modules

17 years agoadd Haddock marker
Ross Paterson [Sun, 27 Aug 2006 11:51:40 +0000 (11:51 +0000)]
add Haddock marker

17 years agoClarify how one hides Prelude.catch
Don Stewart [Sat, 26 Aug 2006 12:43:46 +0000 (12:43 +0000)]
Clarify how one hides Prelude.catch

User feedback indicated that an example was required, of how to hide
Prelude.catch, so add such an example to the docs

17 years agoWorkaround for OSes that don't have intmax_t and uintmax_t
Ian Lynagh [Fri, 25 Aug 2006 13:49:36 +0000 (13:49 +0000)]
Workaround for OSes that don't have intmax_t and uintmax_t
OpenBSD (and possibly others) do not have intmax_t and uintmax_t types:
    http://www.mail-archive.com/haskell-prime@haskell.org/msg01548.html
so substitute (unsigned) long long if we have them, otherwise
(unsigned) long.

17 years agoadd docs for par
Simon Marlow [Fri, 25 Aug 2006 11:06:10 +0000 (11:06 +0000)]
add docs for par

17 years agodocument minimal complete definition for Bits
Ross Paterson [Thu, 24 Aug 2006 14:05:04 +0000 (14:05 +0000)]
document minimal complete definition for Bits

17 years agoC regex library bits have moved to the regex-posix package
Simon Marlow [Thu, 24 Aug 2006 13:23:11 +0000 (13:23 +0000)]
C regex library bits have moved to the regex-posix package

17 years agoAdd shared Typeable support (ghc only)
Esa Ilari Vuokko [Wed, 23 Aug 2006 00:31:26 +0000 (00:31 +0000)]
Add shared Typeable support (ghc only)