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

Function getHaskellStgViewWith

static/components.ts:736–756  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    haskellStgOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

734
735/** Get a haskell stg view with the given configuration. */
736export function getHaskellStgViewWith(
737 id: number,
738 source: string,
739 haskellStgOutput: unknown,
740 compilerName: string,
741 editorid: number,
742 treeid: number,
743): ComponentConfig<typeof HASKELL_STG_VIEW_COMPONENT_NAME> {
744 return {
745 type: 'component',
746 componentName: HASKELL_STG_VIEW_COMPONENT_NAME,
747 componentState: {
748 id,
749 source,
750 haskellStgOutput,
751 compilerName,
752 editorid,
753 treeid,
754 },
755 };
756}
757
758/** Get an empty haskell cmm view component. */
759export function getHaskellCmmView(): ComponentConfig<typeof HASKELL_CMM_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected