elm-language-server icon indicating copy to clipboard operation
elm-language-server copied to clipboard

Definitions for effect modules values

Open jmbockhorst opened this issue 4 years ago • 1 comments

Currently we don't have definitions for these.

jmbockhorst avatar Jan 24 '21 04:01 jmbockhorst

From the http module

effect module Http where { command = MyCmd, subscription = MySub } exposing
  ( get, post, request
  , Header, header
  , Body, emptyBody, stringBody, jsonBody, fileBody, bytesBody
  , multipartBody, Part, stringPart, filePart, bytesPart
  , Expect, expectString, expectJson, expectBytes, expectWhatever, Error(..)
  , track, Progress(..), fractionSent, fractionReceived
  , cancel
  , riskyRequest
  , expectStringResponse, expectBytesResponse, Response(..), Metadata
  , task, Resolver, stringResolver, bytesResolver, riskyTask
  )

This mostly seems to work:

  1. MyCmd doesn't seem to be known
  2. Type inference for subscription and command fails

image

razzeee avatar Apr 27 '21 19:04 razzeee