summaryrefslogtreecommitdiff
path: root/stream.sml
diff options
context:
space:
mode:
authorVladimir Azarov <avm@intermediate-node.net>2025-08-04 15:12:55 +0200
committerVladimir Azarov <avm@intermediate-node.net>2025-08-04 15:12:55 +0200
commit396ebf0c76153e5e1e9dc77371bdd02b4d3d85d1 (patch)
tree3c2aab25631581d5367a6288c2eb9e0f812d76b0 /stream.sml
parent671760c2b5857312cac178f24cad8686c1d4b719 (diff)
Flattening of initializers
Diffstat (limited to 'stream.sml')
-rw-r--r--stream.sml2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream.sml b/stream.sml
index aa8d0aa..cc08d66 100644
--- a/stream.sml
+++ b/stream.sml
@@ -73,6 +73,8 @@ structure Stream :> STREAM = struct
fun create fname = createFromInstream fname (TextIO.openIn fname)
+ fun createFromString s = createFromInstream s (TextIO.openString s)
+
fun getOffset ({ off, ... }: t) = off
fun isFirstOnLine ({ contents, ... }: t) off =