MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getHaskellCoreViewWith

Function getHaskellCoreViewWith

static/components.ts:704–724  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    haskellCoreOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

702
703/** Get a haskell core view with the given configuration. */
704export function getHaskellCoreViewWith(
705 id: number,
706 source: string,
707 haskellCoreOutput: unknown,
708 compilerName: string,
709 editorid: number,
710 treeid: number,
711): ComponentConfig<typeof HASKELL_CORE_VIEW_COMPONENT_NAME> {
712 return {
713 type: 'component',
714 componentName: HASKELL_CORE_VIEW_COMPONENT_NAME,
715 componentState: {
716 id,
717 source,
718 haskellCoreOutput,
719 compilerName,
720 editorid,
721 treeid,
722 },
723 };
724}
725
726/** Get an empty haskell stg view component. */
727export function getHaskellStgView(): ComponentConfig<typeof HASKELL_STG_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected