You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
mgsloan 2018-07-28 I'm happy to announce that you can now easily load GHC into GHCi! I've been using this for about a month now, and for me it makes GHC development far more pleasant than using make. This can often lead to iteration times of only 10-30 seconds to try out some modified behavior. For me, GHCi usage is crucial to efficient Haskell development. One larger project I work on takes a who
There was an online discussion about iteration times in Haskell and whether and why they are slow. For me, it’s not slow. I do all my Haskell development using a REPL. Here are some tips I wrote up in that discussion. Prepare for GHCi use The first thing you want to do before writing anything for your project is make sure you can load your code in the REPL; GHCi. Sometimes you have special configu
Code and ideas in computer science. And maybe a short story or two. The ghci documentation explains how to implement conditional breakpoints by conditionally generating ghci commands depending on the values of variables which are in scope at the breakpoint. The approach works, but is hard to implement correctly because ghci's commands are stringly-typed. In this post, I will present a strongly-typ
Interactive code snippets not yet available for SoH 2.0, see our Status of of School of Haskell 2.0 blog post This post reviews a small feature of GHCi version 7.10 in order to promote it: 1.5.2.3. GHCi It's now possible to use :set -l{foo} in GHCi to link against a foreign library after startup.Before 7.10Before 7.10 library flags had to be passed as command-line arguments to ghci. If we wanted t
Sat, 18 Oct 2014 Haskell : A neat trick for GHCi Just found a really nice little hack that makes working in the GHC interactive REPL a little easier and more convenient. First of all, I added the following line to my ~/.ghci file. :set -DGHC_INTERACTIVE All that line does is define a GHC_INTERACTIVE pre-processor symbol. Then in a file that I want to load into the REPL, I need to add this to the t
A common complaint with GHCi is that it doesn’t scale well when the size of the project gets bigger. Once you hit 20, 30, 50, or 150 modules, it stops being fun anymore and you start wishing you didn’t have to wait for it to load. I recommend enabling -fobject-code. You can enable this by running $ ghci -fobject-code Or by setting it in the REPL: :set -fobject-code If you want it on all the time,
Haskellって、変数に束縛されている値が「評価されている」と「されていない」の状態を持っていて、それがグローバルにあちこちから共有されているから「どれくらいの計算量で終わるか」みたいな議論になるとイメージが掴めなくて困っていた。確認する方法があればいいのになぁ、でも、ないんだろうなぁと、諦めていたが、GHCiである程度できることがわかった。面白いじゃんこれ。 まずこんなソースコードを用意してみる。これは「リストを結合した時点で前半のリストは評価されるのか否か」を実験するためのコード。以前議論になったときに、僕の主張としては「前半を評価しないでも『xsの先頭1個と「xsの残りとysを結合したもの」のcons』を返せば良い。きっとその実装になってるだろう」というものだったのだけど、今までは挙動を観察する方法を知らなかったので議論止まりだった。 xs = [1, 2, 3] ys = [4,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く