Ticket #2042: concatMapM.patch

File concatMapM.patch, 7.7 KB (added by twanvl, 4 years ago)

darcs patch

Line 
1
2New patches:
3
4[Add concatMapM function to Control.Monad
5Twan van Laarhoven <twanvl@gmail.com>**20080114005105] {
6hunk ./Control/Monad.hs 49
7+    , concatMapM    -- :: (Monad m) => (a -> m [b]) -> [a] -> m [b]
8hunk ./Control/Monad.hs 209
9+-- | The 'concatMapM' function generalizes 'concatMap' to arbitrary monads.
10+concatMapM        :: (Monad m) => (a -> m [b]) -> [a] -> m [b]
11+concatMapM f xs   =  liftM concat (mapM f xs)
12+
13}
14
15Context:
16
17[Fix comment on GHC.Ptr.minusPtr
18simonpj@microsoft.com**20080109114736]
19[Remove redundant imports of GHC.Err
20simonpj@microsoft.com**20080104091314
21 
22 GHC.Base SOURCE-imports GHC.Err, and re-exports 'error'.  So
23 other modules need only import GHC.Base.
24 
25 This doesn't change the fact that these other modules are all compiled
26 before GHC.Err, so they are all part of the module loop that starts with
27 GHC.Base and finishes with GHC.Err.  But it does reduce the occurrence
28 of those SOURCE imports.
29 
30]
31[Tuple tycons have parens around their names
32simonpj@microsoft**20071220171812
33 
34 The name of the pair TyCon, in the Typeable instance,
35 should be "(,)" not ",".
36 
37 Don't merge to 6.8; it's a minor API change.
38 
39]
40[Add groupWith, sortWith, the, to support generalised list comprehensions
41simonpj@microsoft.com**20071220111929
42 
43   This the base-library patch to support the main compiler patch
44      Implement generalised list comprehensions
45   
46   It just adds three functions to GHC.Exts.
47 
48]
49[Add GHC.Prim to exposedModules in the Haddock 0.x hook
50David Waern <david.waern@gmail.com>*-20071209173931
51 
52 Please merge to the stable branch
53]
54[Add GHC.Prim to exposedModules in the Haddock 0.x hook
55David Waern <david.waern@gmail.com>**20071209173931
56 
57 Please merge to the stable branch
58]
59[Simplify the GHC.Prim hack in base.cabal/Setup.hs
60Ian Lynagh <igloo@earth.li>**20071202215758]
61[Implement 'openTempFile' for nhc98.
62Malcolm.Wallace@cs.york.ac.uk**20071207133335]
63[docs: describe the changes to forkIO, and document forkOnIO
64Simon Marlow <simonmar@microsoft.com>**20071205091423]
65[doc only: use realToFrac instead of fromRational.toRational
66Simon Marlow <simonmar@microsoft.com>**20071205091334]
67[Add singletonP to GHC.PArr
68Roman Leshchinskiy <rl@cse.unsw.edu.au>**20071205220859]
69[FIX #1621: bug in Windows code for getCPUTime
70Simon Marlow <simonmar@microsoft.com>**20071205120118
71 We were reading the components of FILETIME as CLong, when they should
72 be unsigned.  Word32 seems to be the correct type here.
73]
74[protect console handler against concurrent access (#1922)
75Simon Marlow <simonmar@microsoft.com>**20071204153940]
76[protect against concurrent access to the signal handlers (#1922)
77Simon Marlow <simonmar@microsoft.com>**20071204110817]
78[restore fdToHandle' to avoid breaking clients (#1109)
79Simon Marlow <simonmar@microsoft.com>**20071130135122
80 
81]
82[note about how to convert CTime (aka EpochTime) to UTCTime
83Simon Marlow <simonmar@microsoft.com>**20071130101648]
84[Fix some URLs
85Ian Lynagh <igloo@earth.li>**20071126214213]
86[Fix some links in haddock docs
87Ian Lynagh <igloo@earth.li>**20071126184428]
88[Don't try to make haddock links to the mtl package as we don't depend on it
89Ian Lynagh <igloo@earth.li>**20071126170631]
90[Escape some special characters in haddock docs
91Ian Lynagh <igloo@earth.li>**20071126163443]
92[FIX BUILD: maybeUpdateFile: ignore failures when removing the target
93Simon Marlow <simonmar@microsoft.com>**20071123092219]
94[FIX #1753
95Simon Marlow <simonmar@microsoft.com>**20071122094207
96 hClose should close the Handle and unlock the file even if calling
97 close() fails for some reason.
98]
99[remove lockFile.h from install-includes
100Simon Marlow <simonmar@microsoft.com>**20071121102248]
101[oops, we forgot to export traceShow
102Simon Marlow <simonmar@microsoft.com>**20071121094300]
103[Fix compilation with GHC 6.2.x
104Simon Marlow <simonmar@microsoft.com>**20071121084341]
105[Move file locking into the RTS, fixing #629, #1109
106Simon Marlow <simonmar@microsoft.com>**20071120121053
107 File locking (of the Haskell 98 variety) was previously done using a
108 static table with linear search, which had two problems: the array had
109 a fixed size and was sometimes too small (#1109), and performance of
110 lockFile/unlockFile was suboptimal due to the linear search.
111 Also the algorithm failed to count readers as required by Haskell 98
112 (#629).
113 
114 Now it's done using a hash table (provided by the RTS).  Furthermore I
115 avoided the extra fstat() for every open file by passing the dev_t and
116 ino_t into lockFile.  This and the improvements to the locking
117 algorithm result in a healthy 20% or so performance increase for
118 opening/closing files (see openFile008 test).
119]
120[Only overwrite GHC/Prim.hs and GHC/Primopwrappers.hs if they change
121Simon Marlow <simonmar@microsoft.com>**20071120102042
122 This avoids make doing unnecessary work after 'setup makefile'.
123]
124[fix comment
125Simon Marlow <simonmar@microsoft.com>**20071116091227]
126[Fix ` characters in elem's haddock docs
127Ian Lynagh <igloo@earth.li>**20071110173052]
128[Filter out GHC.Prim also for the Haddock step
129David Waern <david.waern@gmail.com>**20071109000806
130 Please merge to the GHC 6.8.2 branch
131]
132[Add module of special magic GHC desugaring helper functions
133Simon Marlow <simonmar@microsoft.com>**20071102160054
134 Currently containing only one such helper: (>>>) for arrow desugaring
135]
136[add Control.Category to the nhc98 build
137Malcolm.Wallace@cs.york.ac.uk**20071030120459]
138[fix nhc98 build: need a qualified Prelude import
139Malcolm.Wallace@cs.york.ac.uk**20071030120410]
140[Fix performance regression: re-instate -funbox-strict-fields
141Simon Marlow <simonmar@microsoft.com>**20071029150730
142 Yikes!  While investigating the increase in code size with GHC 6.8
143 relative to 6.6, I noticed that in the transition to Cabal for the
144 libraries we lost -funbox-strict-fields, which is more or less
145 depended on by the IO library for performance.  I'm astonished that we
146 didn't notice this earlier!
147 
148 To reduce the chances of this happening again, I put
149 -funbox-strict-fields in the OPTIONS_GHC pragma of the modules that
150 need it.  {-# UNPACK #-} pragmas would be better, though.
151]
152[FIX BUILD: Haddock 1.x fails to parse (Prelude..)
153Simon Marlow <simonmar@microsoft.com>**20071029131921]
154[new Control.Category, ghc ticket #1773
155Ashley Yakeley <ashley@semantic.org>**20071029022526]
156[new Control.Compositor module
157Ashley Yakeley <ashley@semantic.org>**20071013074851
158 
159 The Compositor class is a superclass of Arrow.
160]
161[Fix doc building with Haddock 0.9
162Simon Marlow <simonmar@microsoft.com>**20071024090947
163 I was using a recent build here, which is more tolerant.
164]
165[FIX #1258: document that openTempFile is secure(ish)
166Simon Marlow <simonmar@microsoft.com>**20071023130928
167 Also change the mode from 0666 to 0600, which seems like a more
168 sensible value and matches what C's mkstemp() does.
169]
170[Clean up .cabal file a bit
171Duncan Coutts <duncan@haskell.org>**20071022132708
172 specify build-type and cabal-version >= 1.2
173 put extra-tmp-files in the right place
174 use os(windows) rather than os(mingw32)
175]
176[base in 6.8 and head branch should be version 3.0
177Don Stewart <dons@galois.com>**20071007150408]
178[FIX #1652: openTempFile should accept an empty string for the directory
179Simon Marlow <simonmar@microsoft.com>**20071018122345]
180[clean up duplicate code
181Simon Marlow <simonmar@microsoft.com>**20071017141311]
182[expose the value of +RTS -N as GHC.Conc.numCapabilities (see #1733)
183Simon Marlow <simonmar@microsoft.com>**20071009132042]
184[typo
185Simon Marlow <simonmar@microsoft.com>**20070917130703]
186[put extra-tmp-files field in the right place
187Simon Marlow <simonmar@microsoft.com>**20070914140812]
188[Add more entries to boring file
189Ian Lynagh <igloo@earth.li>**20070913210500]
190[Add a boring file
191Ian Lynagh <igloo@earth.li>**20070913204641]
192[TAG 2007-09-13
193Ian Lynagh <igloo@earth.li>**20070913215720]
194Patch bundle hash:
195acbf33f2efd4bafb18e2d648cd22732aacdf6686