Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.576 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module OrganizeImports where

import Cohatoe.API

resource :: Interface
resource = plugin {
  pluginMain = performOrganizeImports
}

-- TODO this is where the implementation starts. The first list elem of args
-- is the current editor content as string, and we are supposed to return
-- the new editor content, with organized imports. (If we can't handle,
-- e.g. because of a parse error, we should be gentle and return the
-- original buffer
performOrganizeImports :: [String] -> IO [String]
performOrganizeImports args = return args


Something went wrong with that request. Please try again.