From 3ea80e2b8592088a588198b7b5aee1024d883c4e Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sun, 20 Aug 2023 19:28:19 +0200 Subject: [PATCH] fix: complete trim refactor --- lua/haskell-tools/project/cabal.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/haskell-tools/project/cabal.lua b/lua/haskell-tools/project/cabal.lua index abca4a04..69ff0c7c 100644 --- a/lua/haskell-tools/project/cabal.lua +++ b/lua/haskell-tools/project/cabal.lua @@ -8,7 +8,7 @@ --- Helper functions related to cabal projects ---@brief ]] -local HtUtil = require('haskell-tools.util') +local Strings = require('haskell-tools.strings') local HtParser = require('haskell-tools.parser') local Dap = require('haskell-tools.dap.internal') local OS = require('haskell-tools.os') @@ -93,7 +93,7 @@ local function parse_package_entrypoints(package_file) end local lines = vim.split(content, '\n') or {} for idx, line in ipairs(lines) do - local is_comment = vim.startswith(HtUtil.trim(line), '--') + local is_comment = vim.startswith(Strings.trim(line), '--') if not is_comment then ---@type CabalEntryPointParserData local data = {