Re: Does newByteArray clear?

2020-08-26 Thread Bardur Arantsson
On 27/08/2020 02.56, Bertram Felgenhauer via Glasgow-haskell-users wrote: > David Feuer wrote: >> I'm looking to play around with an array-based structure with >> sub-linear worst-case bounds. Array is pretty awkward in that context >> because creating a new one takes O(n) time to initialize it. Is

Re: Linking completely statically

2020-08-10 Thread Bardur Arantsson
On 10/08/2020 23.22, Tyson Whitehead wrote: > On Mon, 10 Aug 2020 at 03:12, Bardur Arantsson <mailto:s...@scientician.net>> wrote: > > Once you have that bit set up, you can copy *most* of the libraries > ..so's you're using to that folder on th

Re: Linking completely statically

2020-08-10 Thread Bardur Arantsson
On 09/08/2020 14.50, Volker Wysk wrote: > Hi! > > I know of the command line argument "-static". But this only affects > the Haskell libraries. I want to link some programs completely > statically, no external libraries needed. > > When just linking with "-static" I still have those dynamically

Re: Proposal: ArgumentDo

2016-07-09 Thread Bardur Arantsson
On 07/09/2016 09:09 AM, C Maeder wrote: > The asymmetry that you mention is already apparent for (Haskell98) infix > expressions, i.e. when "composing" lambda- or if-expression: > > (if c then f else g) . \ x -> h x > > Parentheses around the last argument of "." do not matter, but > parentheses

Re: Proposal: ArgumentDo

2016-07-06 Thread Bardur Arantsson
On 07/04/2016 12:31 PM, Akio Takano wrote: > Hi glasgow-haskell-users, > > I have written a wiki page about a proposed extension called > ArgumentDo. It's a small syntactic extension that allows "do" > expressions, lambdas and a few other kinds of expressions to be used > as function arguments, wi

Re: RFC: Removing the `-hb` profiling option

2016-05-06 Thread Bardur Arantsson
On 05/06/2016 11:04 AM, Erik de Castro Lopo wrote: > Hi all, > > After a bit of rather tedious and frustrating debugging I came to the > realisation that the code for the `-hb` profiling option is not thread > safe. See https://ghc.haskell.org/trac/ghc/ticket/12019 > > This gives us an opportunit

Re: Typing pattern synonyms

2015-09-30 Thread Bardur Arantsson
On 09/30/2015 08:10 PM, David Feuer wrote: > The Eq constraint is needed to support pattern matching, the raison d’être > of pattern synonyms. I'm pretty sure the reason you need > ScopedTypeVariables for your second example is that GHC only allows pattern > signatures with that extension enabled.

Re: RFC: Dropping Windows XP support

2014-11-13 Thread Bardur Arantsson
On 2014-11-13 15:25, Bulat Ziganshin wrote: > Hello Austin, > > Friday, November 7, 2014, 9:16:22 PM, you wrote: > >> For one, Microsoft doesn't support XP anymore, so most people are >> moving off it anyway. 'Soon' even XP Embedded will be obsoleted. > > at the end of http://freearc.org/Sta

Re: RFC: changes to -i flag for finding source files

2014-05-30 Thread Bardur Arantsson
On 2014-05-30 11:00, John Meacham wrote: > JHC has the feature that > > Graphics.UI.GTK.Button can live in any of: > > Graphics/UI/GTK/Button.hs > Graphics/UI/GTK.Button.hs > Graphics/UI.GTK.Button.hs > Graphics.UI.GTK.Button.hs > > It lets you have deep module hiarchies without deep directory >

Re: RFC: changes to -i flag for finding source files

2014-04-25 Thread Bardur Arantsson
On 2014-04-25 15:17, Simon Marlow wrote: > I want to propose a simple change to the -i flag for finding source > files. The problem we often have is that when you're writing code for a > library that lives deep in the module hierarchy, you end up needing a > deep directory structure, e.g. > -1,

Re: RFC: changes to -i flag for finding source files

2014-04-25 Thread Bardur Arantsson
On 2014-04-25 15:17, Simon Marlow wrote: [--snip--] -1 ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: RFC: changes to -i flag for finding source files

2014-04-25 Thread Bardur Arantsson
On 2014-04-25 18:52, Edward Kmett wrote: > I check out and work on projects on a bunch of machines, so it is important > that I > can just pull with git and go. AFAIK, git doesn't understand them won't build > symlinks > for me, so it'd just become another setup step for very marginal benefit, an

Re: Desugaring do-notation to Applicative

2013-10-02 Thread Bardur Arantsson
On 2013-10-02 20:13, Reid Barton wrote: > On Wed, Oct 2, 2013 at 1:50 PM, Edward Kmett wrote: > >> That is admittedly a pretty convincing example that we may want to provide >> either a LANGUAGE pragma or a different syntax to opt in. >> > > I suppose the Applicative desugaring can reliably be d

Re: GHC 7.8 release?

2013-02-12 Thread Bardur Arantsson
On 02/12/2013 09:37 AM, Simon Marlow wrote: > On 11/02/13 23:03, Johan Tibell wrote: >> Hi, >> > Of course we do also make well-intentioned changes to libraries, via the > library proposal process, and some of these break APIs. But it wouldn't > do any harm to batch these up and defer them until t

Re: RFC: Adding support for an API-"since"-version-attribute to Haddock?

2012-09-04 Thread Bardur Arantsson
On 09/04/2012 12:56 PM, Herbert Valerio Riedel wrote: > Hello Haskellers, > > I've been wondering whether it might be useful to add a feature to > Haddock similar to what can be found in other API documentation systems, > specifically an optional parseable "since"-attribute, declaring the last > p

Re: How to describe this bug?

2012-07-12 Thread Bardur Arantsson
On 07/10/2012 12:51 PM, malcolm.wallace wrote: > Also, it is more likely to be a buggy instance of Eq, than a real loss > of referential transparency. > Speaking of which... would it be remiss of me to mention the elephant in the room, namely the Eq instance for Float? AFAICT there is no possibl

Re: Call to arms: lambda-case is stuck and needs your help

2012-07-09 Thread Bardur Arantsson
On 07/09/2012 06:01 PM, Mikhail Vorozhtsov wrote: > On 07/09/2012 09:52 PM, Twan van Laarhoven wrote: >> On 09/07/12 14:44, Simon Marlow wrote: >>> I now think '\' is too quiet to introduce a new layout context. The >>> pressing >>> need is really for a combination of '\' and 'case', that is >>> s

Re: "containing" memory-consuming computations

2012-04-19 Thread Bardur Arantsson
On 04/19/2012 12:45 PM, Herbert Valerio Riedel wrote: Hello GHC Devs, > But I'm missing a similar facility for constraining the space-dimension. In some other languages such as C, I have (more or less) the ability to check for /local/ out-of-memory conditions (e.g. by checking the return value