diff -r 92fde8f61b0d -r 7062639cfdaa NEWS --- a/NEWS Tue Oct 30 19:25:32 2018 +0100 +++ b/NEWS Tue Oct 30 22:05:30 2018 +0100 @@ -87,6 +87,22 @@ potentially with variations on ML syntax (existing ML_Env.SML_operations observes the official standard). +* GHC.read_source reads Haskell source text with antiquotations (only +the control-cartouche form). The default "cartouche" antiquotation +evaluates an ML expression of type string and inlines the result as +Haskell string literal. This allows to refer to Isabelle items robustly, +e.g. via Isabelle/ML antiquotations or library operations. For example: + +ML \ + GHC.read_source \<^context> \ + allConst, impConst, eqConst :: String + allConst = \\<^const_name>\Pure.all\\ + impConst = \\<^const_name>\Pure.imp\\ + eqConst = \\<^const_name>\Pure.eq\\ + \ + |> File.write \<^path>\consts.hs\ +\ + *** System ***