diff --git a/Formula/dhall-lsp-server.rb b/Formula/dhall-lsp-server.rb index 68b6c032f949a..dcdb7c3ca0e7d 100644 --- a/Formula/dhall-lsp-server.rb +++ b/Formula/dhall-lsp-server.rb @@ -1,13 +1,10 @@ -require "language/haskell" - class DhallLspServer < Formula - include Language::Haskell::Cabal - desc "Language Server Protocol (LSP) server for Dhall" homepage "https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server" url "https://hackage.haskell.org/package/dhall-lsp-server-1.0.7/dhall-lsp-server-1.0.7.tar.gz" sha256 "81b85964ef2865b76fdfa494e241090da3dbd00fac3b2f1b530ee9e35354de22" head "https://github.com/dhall-lang/dhall-haskell.git" + revision 1 bottle do cellar :any_skip_relocation @@ -17,10 +14,11 @@ class DhallLspServer < Formula end depends_on "cabal-install" => :build - depends_on "ghc@8.8" => :build + depends_on "ghc" => :build def install - install_cabal_package + system "cabal", "v2-update" + system "cabal", "v2-install", *std_cabal_v2_args end test do