This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.1

Elm.RawFile

Elm.RawFile

type alias RawFile = Internal.RawFile

A Raw file

moduleName : RawFile -> Maybe ModuleName

Retrieve the module name for a raw file

imports : RawFile -> List Import

Retrieve the imports for a raw file

module Elm.RawFile exposing (RawFile, imports, moduleName)

{-|


# Elm.RawFile

@docs RawFile

@docs moduleName, imports

-}

import Elm.Internal.RawFile as Internal
import Elm.Syntax.Base exposing (ModuleName)
import Elm.Syntax.Module as Module exposing (Import)


{-| A Raw file
-}
type alias RawFile =
    Internal.RawFile


{-| Retrieve the module name for a raw file
-}
moduleName : RawFile -> Maybe ModuleName
moduleName (Internal.Raw file) =
    Module.moduleName file.moduleDefinition


{-| Retrieve the imports for a raw file
-}
imports : RawFile -> List Import
imports (Internal.Raw file) =
    file.imports