haskell-ja > Archives > 2013/05/20

2013/05/20 00:58:55 UTCcutsea110
#
C-cC-tみたいなものでしょうか?
#
もしそうだとして:typeInを試そうとするとどうやればいいんだろう。
#
{ }0とholeを作った状態で対話型インタプリタ立ち上げて:loadがエラーになるので:typeInを使うこともできなそう。
2013/05/20 06:44:40 UTCnotogawa
#
$ cat Test.agda
module Test where

data A : Set where
  a : A

data B : Set where
  b : B

idA : A → A
idA x = {!!}

idB : B → B
idB x = {!!}
$ agda -I Test.agda
Main> :typeOf x
1,1-2
Not in scope:
  x at 1,1-2
when scope checking x
Main> :typeIn 0 x
A
Main> :typeIn 1 x
B
2013/05/20 08:59:39 UTCcutsea110
#
おお、ありがとうございます
2013/05/20 09:10:31 UTCcutsea110
#
C-cC-eで見えてるのがそうっぽい
#
thanx > notogawa