IT練習ノート

IT関連で調べたこと(実際は嵌ったこと)を書いています。

PolyperseのText.Perseの持ち上げ

Text.ParserCombinators.Poly.State

パーサーで状態を扱いたいと思って、Polyperseを見ていました。Stete用のコンビネータがあるのですが、そのモジュールには基本的なコンビネータがないので、どうしたものかと思いました。Steteでも使えるようにText.Perseモジュールを持ち上げてみました。が、これで良いのかわかりません。他にやり方があるのかもしれません。

Lifting PolyPersec Text.Parse

SQLServer Expressのインストール

stackでghciを使った時の履歴の場所

履歴はghci間で共有されているようです。

ghciに入りなにか入力する。

$ ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Prelude> xxxxxxx

<interactive>:1:1: error: Variable not in scope: xxxxxxx
Prelude> :q
Leaving GHCi.

stack ghciを起動し、履歴をみると、ghciで入力した履歴がでる。

$ stack ghci
servant07-0.1.0.0: initial-build-steps (lib + exe)
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: servant07
figuration from /private/var/folders/hw/p4bp49hd7v9_1j60sjvmhqnr0000gn/T/ghci81622/ghci-script

-- ここで上矢印キーをおす

Prelude> xxxxxxx

ただし、別ターミナルで同時に動かした時は共有されないようです。