Skip to content

Commit

Permalink
fix: complete trim refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Aug 20, 2023
1 parent a21d2e8 commit 3ea80e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/haskell-tools/project/cabal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 3ea80e2

Please sign in to comment.