src/Pure/Thy/thy_header.ML
changeset 40530 f814863f3918
parent 40523 1050315f6ee2
child 41944 b97091ae583a
equal deleted inserted replaced
40529:d5fb1f1a5857 40530:f814863f3918
    77     (path', "thy") => (Path.dir path', Path.implode (Path.base path'))
    77     (path', "thy") => (Path.dir path', Path.implode (Path.base path'))
    78   | _ => error ("Bad theory file specification: " ^ Path.implode path));
    78   | _ => error ("Bad theory file specification: " ^ Path.implode path));
    79 
    79 
    80 fun consistent_name name name' =
    80 fun consistent_name name name' =
    81   if name = name' then ()
    81   if name = name' then ()
    82   else error ("Filename " ^ quote (Path.implode (thy_path name)) ^
    82   else error ("Bad file name " ^ quote (Path.implode (thy_path name)) ^
    83     " does not agree with theory name " ^ quote name');
    83     " for theory " ^ quote name');
    84 
    84 
    85 end;
    85 end;