rblaze/bond-haskell

View on GitHub
compiler/src/Language/Bond/Codegen/Haskell/StructDecl.hs

Summary

Maintainability
Test Coverage

Reduce duplication
Open

    typeName = mkType $ makeDeclName decl

Found

typeName = mkType $ makeDeclName decl
typeParams
  = map (\ TypeParam{paramName} -> UnkindedVar $ mkVar paramName)
      declParams
fieldModules
  = unique $
      filter (/= moduleName) $
        filter (/= internalModuleAlias) $
          concatMap (getTypeModules . snd) fields
mkField f
  = ([mkVar $ makeFieldName f],
     hsType (setType opts) ctx (fieldType f))
ownFields = map mkField structFields
fields
  | Just base <- structBase =
    ([baseStructField], hsType (setType opts) ctx base) : ownFields
  | otherwise = ownFields

Perhaps

Combine with compiler/src/Language/Bond/Codegen/Haskell/StructDecl.hs:193:5

There are no issues that match your filters.

Category
Status