Re: How inline pragma works

2015-11-10 Thread Ömer Sinan Ağacan
There's this section in GHC user manual: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/pragmas.html#inline-noinline-pragma But see also: https://ghc.haskell.org/trac/ghc/ticket/10766 2015-11-10 5:16 GMT-05:00 Эдгар Жаворонков : > Hello everyone! > >

Re: too many lines too long

2015-11-10 Thread Austin Seipp
Lots of good replies in this thread. I just wanted to follow up on my suggestion from earlier and give some insight as to why I suggested this: The _only_ reason I really suggested a hard enforcement is because, roughly speaking, maintaining code is roughly ~infinitely more expensive than

Re: How inline pragma works

2015-11-10 Thread Эдгар Жаворонков
And can you tell me, where can i find a source code in GHC to see, how this pragma is handeled? --- С уважением, Жаворонков Эдгар Best regards, Edgar A. Zhavoronkov 2015-11-10 17:48 GMT+03:00 Ömer Sinan Ağacan : > There's this section in GHC user manual: > >

Re: too many lines too long

2015-11-10 Thread Edward Kmett
Heck, I've been able to use 132 columns since my VT-220 days. ;) -Edward On Mon, Nov 9, 2015 at 5:45 PM, Simon Peyton Jones wrote: > In my view 80 chars is too short. It was justified in the days of > 80-column CRTs, but that just isn't a restriction any more. I

Re: How inline pragma works

2015-11-10 Thread Ömer Sinan Ağacan
I don't know the whole story, but here are some pointers to get you started: - Internally, inlined code is called "unfolding". You can see the definition in CoreSyn. - CoreUnfold module has important functions to decide whether to inline or not. - Actual work of replacing identifiers with

How inline pragma works

2015-11-10 Thread Эдгар Жаворонков
Hello everyone! Where can i read about how does INLINE pragma in compiler works? --- С уважением, Жаворонков Эдгар Best regards, Edgar A. Zhavoronkov ___ ghc-devs mailing list ghc-devs@haskell.org

Problems with cabal

2015-11-10 Thread Эдгар Жаворонков
Hi, everyone! I have a strange problems with building GHC from sources. I cloned git repo as said in newcomers' page, but i have that kind of error: Cloning into 'libraries/Cabal'... fatal: repository 'https://github.com/ghc/packages/Cabal.git/' not found Clone of

RE: too many lines too long

2015-11-10 Thread Ben Gamari
Simon Peyton Jones writes: > In my view 80 chars is too short. It was justified in the days of > 80-column CRTs, but that just isn't a restriction any more. I > routinely edit in a much wider window. > As far as a hard length limit is concerned I am with Simon here. 80

Re: Problems with cabal

2015-11-10 Thread Adam Sandberg Eriksson
It seems you missed this part on the newcomers page[1]: git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/ Adam Sandberg Eriksson [1]https://ghc.haskell.org/trac/ghc/wiki/Newcomers On Tue, 10 Nov 2015, at 11:44 AM, Эдгар Жаворонков wrote: > Hi,

Re: too many lines too long

2015-11-10 Thread Tuncer Ayaz
On Mon, Nov 9, 2015 at 11:51 PM, Richard Eisenberg wrote: > At both school and at home I can fit 3 80-character buffers side by > side, at a comfortable font size. Going up (even to 85 cols) would > mean losing a buffer. (Or straining my eyes.) Of course I can deal > with