mirror of
https://github.com/dillonkearns/elm-pages.git
synced 2024-09-11 09:05:28 +03:00
Move Stream module under BackendTask namespace.
This commit is contained in:
parent
42136df9de
commit
b7a7fc0434
2
elm.json
2
elm.json
@ -21,7 +21,7 @@
|
||||
"BackendTask.File",
|
||||
"BackendTask.Custom",
|
||||
"BackendTask.Env",
|
||||
"Stream",
|
||||
"BackendTask.Stream",
|
||||
"BackendTask.Do",
|
||||
"Server.Request",
|
||||
"Server.Session",
|
||||
|
@ -1,10 +1,10 @@
|
||||
module StreamDemo exposing (run)
|
||||
|
||||
import BackendTask exposing (BackendTask)
|
||||
import BackendTask.Stream as Stream exposing (Stream)
|
||||
import FatalError exposing (FatalError)
|
||||
import Json.Decode as Decode
|
||||
import Pages.Script as Script exposing (Script)
|
||||
import Stream exposing (Stream)
|
||||
|
||||
|
||||
run : Script
|
||||
|
@ -3,13 +3,13 @@ module StreamTests exposing (run)
|
||||
import BackendTask exposing (BackendTask)
|
||||
import BackendTask.Custom
|
||||
import BackendTask.Http
|
||||
import BackendTask.Stream as Stream exposing (Stream, defaultCommandOptions)
|
||||
import BackendTaskTest exposing (testScript)
|
||||
import Expect
|
||||
import FatalError exposing (FatalError)
|
||||
import Json.Decode as Decode
|
||||
import Json.Encode as Encode
|
||||
import Pages.Script as Script exposing (Script)
|
||||
import Stream exposing (Stream, defaultCommandOptions)
|
||||
import Test
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Stream exposing
|
||||
module BackendTask.Stream exposing
|
||||
( Stream
|
||||
, fileRead, fileWrite, fromString, http, httpWithInput, pipe, stdin, stdout, stderr, gzip, unzip
|
||||
, CommandOutput
|
||||
@ -28,7 +28,7 @@ For example, you could have a stream that
|
||||
|
||||
For example,
|
||||
|
||||
import Stream exposing (Stream)
|
||||
import BackendTask.Stream as Stream exposing (Stream)
|
||||
|
||||
example =
|
||||
Stream.fileRead "data.txt"
|
@ -43,13 +43,13 @@ Read more about using the `elm-pages` CLI to run (or bundle) scripts, plus a bri
|
||||
import BackendTask exposing (BackendTask)
|
||||
import BackendTask.Http
|
||||
import BackendTask.Internal.Request
|
||||
import BackendTask.Stream as Stream
|
||||
import Cli.OptionsParser as OptionsParser
|
||||
import Cli.Program as Program
|
||||
import FatalError exposing (FatalError)
|
||||
import Json.Decode as Decode
|
||||
import Json.Encode as Encode
|
||||
import Pages.Internal.Script
|
||||
import Stream
|
||||
|
||||
|
||||
{-| The type for your `run` function that can be executed by `elm-pages run`.
|
||||
|
Loading…
Reference in New Issue
Block a user