aboutsummaryrefslogtreecommitdiff
path: root/src/Experiments/NewPipeline/StandaloneHaskellMain.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2018-06-17 22:39:05 -0400
committerGravatar Jason Gross <jgross@mit.edu>2018-06-17 22:39:08 -0400
commit9dd87cff716864146924df8afa0209cf8a3040b8 (patch)
tree22720ddbe5281b2436a64ecb157e7b058f93610e /src/Experiments/NewPipeline/StandaloneHaskellMain.v
parent932bbb55949ade7fae7947909f09fd7ff0c9be47 (diff)
Pass around lists of strings for error messages
This allows us to get back an error message in Saturated Solinas in OCaml on P256 x32 in reasonable time without blowing the stack. There's the slight oddity that the list of string in the success case is joined by the empty string, but the list of string in the error case is joined by newline. Probably meanas that I chose the wrong abstraction barrier somewhere.
Diffstat (limited to 'src/Experiments/NewPipeline/StandaloneHaskellMain.v')
-rw-r--r--src/Experiments/NewPipeline/StandaloneHaskellMain.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Experiments/NewPipeline/StandaloneHaskellMain.v b/src/Experiments/NewPipeline/StandaloneHaskellMain.v
index 5333f7c92..d9ada8451 100644
--- a/src/Experiments/NewPipeline/StandaloneHaskellMain.v
+++ b/src/Experiments/NewPipeline/StandaloneHaskellMain.v
@@ -46,7 +46,7 @@ Module UnsaturatedSolinas.
(prog::argv)
(fun res => printf_string
(String.concat "" res))
- (fun err => raise_failure _ err)).
+ (fun err => raise_failure _ (String.concat String.NewLine err))).
End UnsaturatedSolinas.
Module SaturatedSolinas.
@@ -58,5 +58,5 @@ Module SaturatedSolinas.
(prog::argv)
(fun res => printf_string
(String.concat "" res))
- (fun err => raise_failure _ err)).
+ (fun err => raise_failure _ (String.concat String.NewLine err))).
End SaturatedSolinas.