author | haftmann |
Sat, 07 Jun 2014 08:16:03 +0200 | |
changeset 57185 | 188da8aaae24 |
parent 57184 | 56f3351cc492 |
child 57186 | 63c7b29d29ac |
--- a/src/Pure/Isar/named_target.ML Sat Jun 07 08:16:03 2014 +0200 +++ b/src/Pure/Isar/named_target.ML Sat Jun 07 08:16:03 2014 +0200 @@ -43,7 +43,10 @@ then Option.map (fn Target ta => ta) (Data.get lthy) else NONE; -fun is_theory lthy = Option.map #target (peek lthy) = SOME ""; +fun is_theory lthy = + case peek lthy of + SOME {target = "", ...} => true + | _ => false; fun locale_of lthy = case peek lthy of