           return
         resolve data.split('\n')
 
-  trim: (label) =>
-    return unless label
-    if label.length>@trimTypeTo
-      label.slice(0,@trimTypeTo)+'...'
-    else
-      label
-
   getFirstClass: (data) =>
     data
       .filter (line) ->

          prefix: @prefix
        }

  getModule: (prefix) =>
    @info.moduleList
      .filter (line) ->

    @trimTypeTo=atom.config.get 'autocomplete-haskell.trimTypeTo'
    @hooglePath=atom.config.get 'autocomplete-haskell.hooglePath'

  #general utility
  trim: (label) =>
    return unless label
    if label.length>@trimTypeTo
      label.slice(0,@trimTypeTo)+'...'
    else
      label

  #Hoogle search
  addModules: (search) =>
    '+'+@controller.modules.join(' +')+' '+search

