Skip to content

Commit

Permalink
stylish-haskell: use language-specific heredoc delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Dec 3, 2024
1 parent 0354ffd commit e4d62a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/s/stylish-haskell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def install
end

test do
(testpath/"test.hs").write <<~EOS
(testpath/"test.hs").write <<~HASKELL
{-# LANGUAGE ViewPatterns, TemplateHaskell #-}
{-# LANGUAGE GeneralizedNewtypeDeriving,
ViewPatterns,
Expand All @@ -39,8 +39,8 @@ module Bad where
import qualified Data.Map as M
import Data.Map ((!), keys, Map)
EOS
expected = <<~EOS
HASKELL
expected = <<~HASKELL
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
Expand All @@ -52,7 +52,7 @@ module Bad where
import Data.Map (Map, keys, (!))
import qualified Data.Map as M
EOS
HASKELL
assert_equal expected, shell_output("#{bin}/stylish-haskell test.hs")
end
end

0 comments on commit e4d62a5

Please sign in to comment.