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
ただし、別ターミナルで同時に動かした時は共有されないようです。