summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2022-05-01 08:34:42 +0200
committerLars-Dominik Braun <lars@6xq.net>2022-06-06 13:26:45 +0200
commite3337f35afa83e746f0a66451fd4d2212c032b03 (patch)
treeedab05615f5ca472cf136d579373d10e735b08d3 /tests
parent001e0bac99c977d2ff04910295b154f91aa3d369 (diff)
downloadguix-e3337f35afa83e746f0a66451fd4d2212c032b03.tar.gz
import: cabal: Allow curly bracket before else statement.
* guix/import/cabal.scm (is-else): Turn into procedure.
(lex-line): Move IS-ELSE…
(lex-word): …here.
* tests/hackage.scm (test-cabal-elif-brackets): Extend testcase.
Diffstat (limited to 'tests')
-rw-r--r--tests/hackage.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/hackage.scm b/tests/hackage.scm
index 4ce48b6baf..98f9c34fd2 100644
--- a/tests/hackage.scm
+++ b/tests/hackage.scm
@@ -398,7 +398,10 @@ library
   elif os(guix) { Build-depends: ghc-c }
   elif os(third) {
     Build-depends: ghc-d }
-  else
+  elif os(fourth)
+  {
+    Build-depends: ghc-d
+  } else
     Build-depends: ghc-e
 ")