packages feed

hs-bindgen-1.0.0.0: test-artefacts/fixtures/program-analysis/selection_bad/th.txt

-- addDependentFile test-artefacts/headers/golden/program-analysis/selection_bad_size_t.h
-- addDependentFile test-artefacts/headers/golden/program-analysis/selection_bad.h
{-| __C declaration:__ @macro A@

    __defined at:__ @program-analysis\/selection_bad.h 3:9@

    __exported by:__ @program-analysis\/selection_bad.h@
-}
newtype A
    = A {unwrapA :: CInt}
    deriving stock (Eq, Generic, Ord, Read, Show)
    deriving newtype (Bitfield,
                      Bits,
                      Bounded,
                      Enum,
                      FiniteBits,
                      HasFFIType,
                      Integral,
                      Ix,
                      Num,
                      Prim,
                      ReadRaw,
                      Real,
                      StaticSize,
                      Storable,
                      WriteRaw)
instance (~) ty CInt => HasField "unwrapA" A ty
    where hasField = \x_0 -> (\y_1 -> A{unwrapA = y_1},
                              getField @"unwrapA" x_0)
instance (~) ty CInt => HasField "unwrapA" (Ptr A) (Ptr ty)
    where getField = fromPtr (Proxy @"unwrapA")
instance HasCField A "unwrapA"
    where type CFieldType A "unwrapA" = CInt
          offset# = \_ -> \_ -> 0