Zulip Chat Archive
Stream: general
Topic: Include contents of a file as string
Greg Shuflin (Dec 08 2024 at 05:40):
Is there a way to include the contents of a file on disk as a string at compile time?
Kyle Miller (Dec 08 2024 at 07:11):
Yes, see docs#Lean.includeStr
(Note that mathlib contains its own copy of this that somebody ought to delete, otherwise you get an ambiguity error.)
Kim Morrison (Dec 09 2024 at 08:46):
Last updated: May 02 2025 at 03:31 UTC